Documentation ¶
Index ¶
- type Chunk
- type ChunkAllocator
- func (this *ChunkAllocator) Alloc() int32
- func (this *ChunkAllocator) AllocEx() *Chunk
- func (this *ChunkAllocator) Free(id int32)
- func (this *ChunkAllocator) FreeEx(chunk *Chunk)
- func (this *ChunkAllocator) GetData(id int32) (interface{}, bool)
- func (this *ChunkAllocator) SetData(id int32, data interface{}) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChunkAllocator ¶
type ChunkAllocator struct { //busyHead int32 Chunks []Chunk // contains filtered or unexported fields }
func NewChunkAllocator ¶
func NewChunkAllocator(capacity int32) *ChunkAllocator
func (*ChunkAllocator) Alloc ¶
func (this *ChunkAllocator) Alloc() int32
func (*ChunkAllocator) AllocEx ¶
func (this *ChunkAllocator) AllocEx() *Chunk
func (*ChunkAllocator) Free ¶
func (this *ChunkAllocator) Free(id int32)
func (*ChunkAllocator) FreeEx ¶
func (this *ChunkAllocator) FreeEx(chunk *Chunk)
func (*ChunkAllocator) GetData ¶
func (this *ChunkAllocator) GetData(id int32) (interface{}, bool)
func (*ChunkAllocator) SetData ¶
func (this *ChunkAllocator) SetData(id int32, data interface{}) bool
Click to show internal directories.
Click to hide internal directories.