Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotEnoughMemory = errors.New("not enough memory")
Functions ¶
func MemoryGrowCheck ¶
Types ¶
type LinearMemory ¶
type LinearMemory interface {
// 线程不安全
Reallocate(size uint64) (all []byte, err error)
Free() error
}
func NewGuardedMemory ¶
func NewGuardedMemory(cap, max uint64) (m LinearMemory, err error)
func NewMemory ¶
func NewMemory(cap, max uint64) (LinearMemory, error)
Click to show internal directories.
Click to hide internal directories.