Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PageSize = os.Getpagesize()
PageSize is the minimum allocation size. Allocations will use at least this size and are likely to be multiplied up to a multiple of this size.
Functions ¶
func Alloc ¶
Alloc allocates size bytes and returns a slice containing them. If the allocation fails it will return with an error. This is best used for allocations which are a multiple of the PageSize.
func Free ¶
Free frees buffers allocated by Alloc. Note it should be passed the same slice (not a derived slice) that Alloc returned. If the free fails it will return with an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.