Versions in this module Expand all Collapse all v1 v1.0.0 Feb 22, 2019 Changes in this version + const MinRead + var ErrHasReleaser = errors.New("leveldb: releaser already defined") + var ErrReleased = errors.New("leveldb: resource already relesed") + func Hash(data []byte, seed uint32) uint32 + type BasicReleaser struct + func (r *BasicReleaser) Release() + func (r *BasicReleaser) Released() bool + func (r *BasicReleaser) SetReleaser(releaser Releaser) + type Buffer struct + func NewBuffer(buf []byte) *Buffer + func (b *Buffer) Alloc(n int) []byte + func (b *Buffer) Bytes() []byte + func (b *Buffer) Grow(n int) + func (b *Buffer) Len() int + func (b *Buffer) Next(n int) []byte + func (b *Buffer) Read(p []byte) (n int, err error) + func (b *Buffer) ReadByte() (c byte, err error) + func (b *Buffer) ReadBytes(delim byte) (line []byte, err error) + func (b *Buffer) ReadFrom(r io.Reader) (n int64, err error) + func (b *Buffer) Reset() + func (b *Buffer) String() string + func (b *Buffer) Truncate(n int) + func (b *Buffer) Write(p []byte) (n int, err error) + func (b *Buffer) WriteByte(c byte) error + func (b *Buffer) WriteTo(w io.Writer) (n int64, err error) + type BufferPool struct + func NewBufferPool(baseline int) *BufferPool + func (p *BufferPool) Close() + func (p *BufferPool) Get(n int) []byte + func (p *BufferPool) Put(b []byte) + func (p *BufferPool) String() string + type CRC uint32 + func NewCRC(b []byte) CRC + func (c CRC) Update(b []byte) CRC + func (c CRC) Value() uint32 + type NoopReleaser struct + func (NoopReleaser) Release() + type Range struct + Limit []byte + Start []byte + func BytesPrefix(prefix []byte) *Range + type ReleaseSetter interface + SetReleaser func(releaser Releaser) + type Releaser interface + Release func()