Documentation ¶
Overview ¶
Package bytes implements performant bytes implementations.
Index ¶
- type Buffer
- func (b *Buffer) AppendBool(v bool)
- func (b *Buffer) AppendFloat(f float64, fmt byte, prec, bitSize int)
- func (b *Buffer) AppendInt(i int64)
- func (b *Buffer) AppendTime(t time.Time, layout string)
- func (b *Buffer) AppendUint(i uint64)
- func (b *Buffer) Bytes() []byte
- func (b *Buffer) Cap() int
- func (b *Buffer) Len() int
- func (b *Buffer) Reset()
- func (b *Buffer) Write(bs []byte)
- func (b *Buffer) WriteByte(v byte)
- func (b *Buffer) WriteString(s string)
- type Pool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer wraps a byte slice, providing continence functions.
func (*Buffer) AppendBool ¶
AppendBool appends a bool to the underlying Buffer.
func (*Buffer) AppendFloat ¶
AppendFloat appends a float to the underlying Buffer.
func (*Buffer) AppendTime ¶
AppendTime appends a time to the underlying Buffer, in the given layout.
func (*Buffer) AppendUint ¶
AppendUint appends an unsigned integer to the underlying Buffer.
func (*Buffer) Reset ¶
func (b *Buffer) Reset()
Reset resets the underlying byte slice. Subsequent writes re-use the slice's backing array.
func (*Buffer) WriteString ¶
WriteString writes a string to the Buffer.
Click to show internal directories.
Click to hide internal directories.