Versions in this module Expand all Collapse all v1 v1.6.0 Apr 5, 2025 v1.4.0 Oct 6, 2024 Changes in this version + func Bytes2StringRef(b []byte) string + func Prefix(b []byte, length int) []byte + func String2BytesRef(s string) []byte + func Sub(b []byte, index int, length int) []byte + type Buffer struct + func NewBuffer(initCap int) *Buffer + func NewBufferRefBytes(b []byte) *Buffer + func (b *Buffer) Bytes() []byte + func (b *Buffer) Cap() int + func (b *Buffer) DebugString() string + func (b *Buffer) Flush(n int) + func (b *Buffer) Grow(n int) + func (b *Buffer) Len() int + func (b *Buffer) Peek(n int) []byte + func (b *Buffer) Read(p []byte) (n int, err error) + func (b *Buffer) ReserveBytes(n int) []byte + func (b *Buffer) Reset() + func (b *Buffer) ResetAndFree() + func (b *Buffer) Skip(n int) + func (b *Buffer) String() string + func (b *Buffer) Truncate(n int) + func (b *Buffer) WritableBytes() []byte + func (b *Buffer) Write(p []byte) (n int, err error) + func (b *Buffer) WriteString(s string) (n int, err error)