Documentation ¶
Index ¶
- Variables
- func Release(b *Buffer)
- type Buffer
- func (b Buffer) Bytes() ([]byte, error)
- func (b *Buffer) Error() error
- func (b *Buffer) Len() int
- func (b *Buffer) Max() int
- func (b *Buffer) MustString() string
- func (b *Buffer) Release()
- func (b *Buffer) Reset()
- func (b Buffer) SqliteBytes() ([]byte, error)
- func (b *Buffer) String() (string, error)
- func (b *Buffer) Truncate(n int)
- func (b *Buffer) Write(data []byte)
- func (b *Buffer) WriteByte(byte byte)
- func (b *Buffer) WriteByteUnsafe(byte byte)
- func (b *Buffer) WritePad(data []byte, padSize int)
- func (b *Buffer) WriteString(data string)
- func (b *Buffer) WriteUnsafe(data string)
- type Config
- type Pool
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMaxSize = errors.New("buffer maximum size")
)
Functions ¶
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func (*Buffer) MustString ¶
func (Buffer) SqliteBytes ¶
optimization for passing the result to the ExecTerminated method of sqlite.Conn.
func (*Buffer) WriteByteUnsafe ¶
Our caller knows that there's enough space in data (probably because it used WritePad)
func (*Buffer) WritePad ¶
Write and ensure enough capacity for len(data) + padSize Meant to be used with WriteByteUnsafe.
func (*Buffer) WriteString ¶
func (*Buffer) WriteUnsafe ¶
Click to show internal directories.
Click to hide internal directories.