Documentation ¶
Overview ¶
Package gather implements data structures storing binary data organized in a series of byte slices of fixed size that only gathered together by the user.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bytes ¶
type Bytes struct { Slices [][]byte // contains filtered or unexported fields }
Bytes represents a sequence of bytes split into slices.
func (*Bytes) AppendSectionTo ¶
AppendSectionTo appends the section of the buffer to the provided slice and returns it.
type WriteBuffer ¶
type WriteBuffer struct {
Bytes
}
WriteBuffer is a write buffer for content of unknown size that manages data in a series of byte slices of uniform size.
func (*WriteBuffer) Append ¶
func (b *WriteBuffer) Append(data []byte)
Append appends the specified slice of bytes to the buffer.
func (*WriteBuffer) Close ¶
func (b *WriteBuffer) Close()
Close releases all memory allocated by this buffer.
Click to show internal directories.
Click to hide internal directories.