Documentation ¶
Index ¶
- type Bytes
- func (bb *Bytes) AppendByte(b byte)
- func (bb *Bytes) AppendFrom(data []byte)
- func (bb *Bytes) AppendString(s string)
- func (bb *Bytes) AppendTo(data []byte) []byte
- func (bb *Bytes) Bytes() *[]byte
- func (bb Bytes) Cap() int
- func (bb *Bytes) CopyFrom(data []byte)
- func (bb *Bytes) CopyFromWithOffset(data []byte, offset int)
- func (bb *Bytes) CopyTo(data []byte) []byte
- func (bb *Bytes) Fill(data []byte, start, end int)
- func (bb *Bytes) Len() int
- func (bb *Bytes) Read(p []byte) (n int, err error)
- func (bb *Bytes) Release()
- func (bb *Bytes) Reset()
- func (bb *Bytes) SetBytes(b *[]byte)
- func (bb *Bytes) Write(p []byte) (n int, err error)
- type BytesPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bytes ¶
type Bytes struct {
// contains filtered or unexported fields
}
func (*Bytes) AppendByte ¶
func (*Bytes) AppendFrom ¶
func (*Bytes) AppendString ¶
func (*Bytes) CopyFromWithOffset ¶
type BytesPool ¶ added in v0.9.27
type BytesPool struct {
// contains filtered or unexported fields
}
BytesPool contains the logic of reusing objects distinguishable by size in generic way.
func NewBytesPool ¶
NewBytesPool creates new BytesPool that reuses objects which size is in logarithmic range [min, max].
func (*BytesPool) Get ¶ added in v0.9.27
Get returns probably reused slice of bytes with at least capacity of c and exactly len of n.
Click to show internal directories.
Click to hide internal directories.