kubernetes/vendor/go.uber.org/zap/buffer/buffer.go

const _size

type Buffer

// AppendByte writes a single byte to the Buffer.
func (b *Buffer) AppendByte(v byte) {}

// AppendBytes writes the given slice of bytes to the Buffer.
func (b *Buffer) AppendBytes(v []byte) {}

// AppendString writes a string to the Buffer.
func (b *Buffer) AppendString(s string) {}

// AppendInt appends an integer to the underlying buffer (assuming base 10).
func (b *Buffer) AppendInt(i int64) {}

// AppendTime appends the time formatted using the specified layout.
func (b *Buffer) AppendTime(t time.Time, layout string) {}

// AppendUint appends an unsigned integer to the underlying buffer (assuming
// base 10).
func (b *Buffer) AppendUint(i uint64) {}

// AppendBool appends a bool to the underlying buffer.
func (b *Buffer) AppendBool(v bool) {}

// AppendFloat appends a float to the underlying buffer. It doesn't quote NaN
// or +/- Inf.
func (b *Buffer) AppendFloat(f float64, bitSize int) {}

// Len returns the length of the underlying byte slice.
func (b *Buffer) Len() int {}

// Cap returns the capacity of the underlying byte slice.
func (b *Buffer) Cap() int {}

// Bytes returns a mutable reference to the underlying byte slice.
func (b *Buffer) Bytes() []byte {}

// String returns a string copy of the underlying byte slice.
func (b *Buffer) String() string {}

// Reset resets the underlying byte slice. Subsequent writes re-use the slice's
// backing array.
func (b *Buffer) Reset() {}

// Write implements io.Writer.
func (b *Buffer) Write(bs []byte) (int, error) {}

// WriteByte writes a single byte to the Buffer.
//
// Error returned is always nil, function signature is compatible
// with bytes.Buffer and bufio.Writer
func (b *Buffer) WriteByte(v byte) error {}

// WriteString writes a string to the Buffer.
//
// Error returned is always nil, function signature is compatible
// with bytes.Buffer and bufio.Writer
func (b *Buffer) WriteString(s string) (int, error) {}

// TrimNewline trims any final "\n" byte from the end of the buffer.
func (b *Buffer) TrimNewline() {}

// Free returns the Buffer to its Pool.
//
// Callers must not retain references to the Buffer after calling Free.
func (b *Buffer) Free() {}