Documentation ¶
Index ¶
- Constants
- Variables
- type Allocator
- func (a *Allocator) Alloc(size uint32) Pointable
- func (a *Allocator) Close() error
- func (a *Allocator) FirstPointer(size uint32) Pointable
- func (a *Allocator) Free(p Pointable)
- func (a *Allocator) Link(ptr Pointable)
- func (a *Allocator) Nil() Pointable
- func (a *Allocator) Pointer(addr uint64, size uint32) Pointable
- func (a *Allocator) PreAlloc(size uint32)
- func (a *Allocator) Print() error
- func (a *Allocator) Remove()
- func (a *Allocator) Scan(startPtr Pointable, scanFn func(Pointable) (bool, error)) (err error)
- func (a *Allocator) Size() uint64
- type Options
- type PagerOptions
- type Pointable
- type Pointer
- func (p *Pointer) Addr() uint64
- func (p *Pointer) Copy() Pointable
- func (p *Pointer) Equal(ptr Pointable) bool
- func (p *Pointer) Format(f fmt.State, c rune)
- func (p *Pointer) Get(into encoding.BinaryUnmarshaler) error
- func (p *Pointer) IsFree() bool
- func (p *Pointer) IsNil() bool
- func (p *Pointer) MarshalBinary() ([]byte, error)
- func (p *Pointer) Set(from encoding.BinaryMarshaler) error
- func (p *Pointer) Size() uint32
- func (p *Pointer) UnmarshalBinary(d []byte) error
Constants ¶
View Source
const PointerMetaSize = 5
View Source
const PointerSize = 8 + PointerMetaSize
Variables ¶
View Source
var ErrInvalidPointer = errors.New("invalid Pointer")
View Source
var ErrMarshal = errors.New("marshal error")
View Source
var ErrUnmarshal = errors.New("unmarshal error")
Functions ¶
This section is empty.
Types ¶
type Allocator ¶
type Allocator struct {
// contains filtered or unexported fields
}
func (*Allocator) FirstPointer ¶
type Options ¶
type Options struct { TargetPageSize uint16 TreePageSize uint16 PagerOptions PagerOptions }
type PagerOptions ¶
type Pointer ¶
type Pointer struct {
// contains filtered or unexported fields
}
func (*Pointer) MarshalBinary ¶
func (*Pointer) UnmarshalBinary ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.