Versions in this module Expand all Collapse all v2 v2.2.7 Jul 12, 2025 Changes in this version + type Buffer interface + Bytes func() []byte + Len func() int + Malloc func(cap int, whence ...Whence) *Writer + Mount func(block interface{}, whence ...Whence) + Range func(fn func(node *NocopyNode) bool) + Release func() + type NocopyBuffer struct + func NewNocopyBuffer(blocks ...interface{}) *NocopyBuffer + func (b *NocopyBuffer) Bytes() []byte + func (b *NocopyBuffer) Len() int + func (b *NocopyBuffer) Malloc(cap int, whence ...Whence) *Writer + func (b *NocopyBuffer) Mount(block interface{}, whence ...Whence) + func (b *NocopyBuffer) Nodes() int + func (b *NocopyBuffer) Range(fn func(node *NocopyNode) bool) + func (b *NocopyBuffer) Release() + type NocopyNode struct + func (n *NocopyNode) Bytes() []byte + func (n *NocopyNode) Len() int + func (n *NocopyNode) Next() *NocopyNode + func (n *NocopyNode) Release() + type Reader struct + func NewReader(data []byte) *Reader + func (r *Reader) ReadBool() (bool, error) + func (r *Reader) ReadBools(n int) ([]bool, error) + func (r *Reader) ReadByte() (byte, error) + func (r *Reader) ReadBytes(n int) ([]byte, error) + func (r *Reader) ReadFloat32(order binary.ByteOrder) (float32, error) + func (r *Reader) ReadFloat32s(order binary.ByteOrder, n int) ([]float32, error) + func (r *Reader) ReadFloat64(order binary.ByteOrder) (float64, error) + func (r *Reader) ReadFloat64s(order binary.ByteOrder, n int) ([]float64, error) + func (r *Reader) ReadInt16(order binary.ByteOrder) (int16, error) + func (r *Reader) ReadInt16s(order binary.ByteOrder, n int) ([]int16, error) + func (r *Reader) ReadInt32(order binary.ByteOrder) (int32, error) + func (r *Reader) ReadInt32s(order binary.ByteOrder, n int) ([]int32, error) + func (r *Reader) ReadInt64(order binary.ByteOrder) (int64, error) + func (r *Reader) ReadInt64s(order binary.ByteOrder, n int) ([]int64, error) + func (r *Reader) ReadInt8() (int8, error) + func (r *Reader) ReadInt8s(n int) ([]int8, error) + func (r *Reader) ReadRune(order binary.ByteOrder) (rune, error) + func (r *Reader) ReadRunes(order binary.ByteOrder, n int) ([]rune, error) + func (r *Reader) ReadString(len int) (string, error) + func (r *Reader) ReadUint16(order binary.ByteOrder) (uint16, error) + func (r *Reader) ReadUint16s(order binary.ByteOrder, n int) ([]uint16, error) + func (r *Reader) ReadUint32(order binary.ByteOrder) (uint32, error) + func (r *Reader) ReadUint32s(order binary.ByteOrder, n int) ([]uint32, error) + func (r *Reader) ReadUint64(order binary.ByteOrder) (uint64, error) + func (r *Reader) ReadUint64s(order binary.ByteOrder, n int) ([]uint64, error) + func (r *Reader) ReadUint8() (uint8, error) + func (r *Reader) ReadUint8s(n int) ([]uint8, error) + func (r *Reader) Reset() + func (r *Reader) Seek(offset int64, whence int) (int64, error) + type Whence int + const Head + const Tail + type Writer struct + func NewWriter(cap ...int) *Writer + func (w *Writer) Available() int + func (w *Writer) Bytes() []byte + func (w *Writer) Cap() int + func (w *Writer) Grow(n int) + func (w *Writer) Len() int + func (w *Writer) Reset() + func (w *Writer) Write(p []byte) (n int, err error) + func (w *Writer) WriteBools(values ...bool) + func (w *Writer) WriteBytes(values ...byte) + func (w *Writer) WriteFloat32s(order binary.ByteOrder, values ...float32) + func (w *Writer) WriteFloat64s(order binary.ByteOrder, values ...float64) + func (w *Writer) WriteInt16s(order binary.ByteOrder, values ...int16) + func (w *Writer) WriteInt32s(order binary.ByteOrder, values ...int32) + func (w *Writer) WriteInt64s(order binary.ByteOrder, values ...int64) + func (w *Writer) WriteInt8s(values ...int8) + func (w *Writer) WriteRunes(order binary.ByteOrder, values ...rune) + func (w *Writer) WriteString(str string) + func (w *Writer) WriteUint16s(order binary.ByteOrder, values ...uint16) + func (w *Writer) WriteUint32s(order binary.ByteOrder, values ...uint32) + func (w *Writer) WriteUint64s(order binary.ByteOrder, values ...uint64) + func (w *Writer) WriteUint8s(values ...uint8) + type WriterPool struct + func NewWriterPool(capacities []int) *WriterPool + func (p *WriterPool) Get(cap int) *Writer + func (p *WriterPool) Put(w *Writer)