Documentation ¶
Index ¶
- Variables
- func BytesToString(b []byte) (s string)
- func StringToBytes(s string) []byte
- type Buffer
- func (b *Buffer) Datas() []byte
- func (b *Buffer) Length() int
- func (b *Buffer) ReadBytes(n int) (v []byte, err error)
- func (b *Buffer) ReadBytesEOF() (v []byte, err error)
- func (b *Buffer) ReadBytesNUL() (v []byte, err error)
- func (b *Buffer) ReadEOF(n int) (err error)
- func (b *Buffer) ReadLenEncode() (v uint64, err error)
- func (b *Buffer) ReadLenEncodeBytes() (v []byte, err error)
- func (b *Buffer) ReadLenEncodeString() (s string, err error)
- func (b *Buffer) ReadString(n int) (s string, err error)
- func (b *Buffer) ReadStringEOF() (s string, err error)
- func (b *Buffer) ReadStringNUL() (s string, err error)
- func (b *Buffer) ReadU16() (v uint16, err error)
- func (b *Buffer) ReadU24() (v uint32, err error)
- func (b *Buffer) ReadU32() (v uint32, err error)
- func (b *Buffer) ReadU64() (v uint64, err error)
- func (b *Buffer) ReadU8() (v uint8, err error)
- func (b *Buffer) ReadZero(n int) (err error)
- func (b *Buffer) Reset(data []byte)
- func (b *Buffer) Seek() int
- func (b *Buffer) WriteBytes(bs []byte)
- func (b *Buffer) WriteEOF(n int)
- func (b *Buffer) WriteLenEncode(v uint64)
- func (b *Buffer) WriteLenEncodeBytes(v []byte)
- func (b *Buffer) WriteLenEncodeNUL()
- func (b *Buffer) WriteLenEncodeString(s string)
- func (b *Buffer) WriteString(s string)
- func (b *Buffer) WriteU16(v uint16)
- func (b *Buffer) WriteU24(v uint32)
- func (b *Buffer) WriteU32(v uint32)
- func (b *Buffer) WriteU64(v uint64)
- func (b *Buffer) WriteU8(v uint8)
- func (b *Buffer) WriteZero(n int)
- type HashTable
- type Iterator
Constants ¶
This section is empty.
Variables ¶
var ( // ErrIOEOF used for io.EOF. ErrIOEOF = io.EOF )
Functions ¶
func BytesToString ¶
BytesToString casts slice to string without copy
func StringToBytes ¶
StringToBytes casts string to slice without copy
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer represents the buffer tuple.
func (*Buffer) ReadBytesEOF ¶
ReadBytesEOF reads until the first EOF in the buffer returning a byte slice containing the data up to and not including the EOF
func (*Buffer) ReadBytesNUL ¶
ReadBytesNUL reads until the first NUL in the buffer returning a byte slice containing the data up to and not including the NUL
func (*Buffer) ReadLenEncode ¶
ReadLenEncode used to read variable length.
func (*Buffer) ReadLenEncodeBytes ¶
ReadLenEncodeBytes used to read variable bytes.
func (*Buffer) ReadLenEncodeString ¶
ReadLenEncodeString used to read variable string.
func (*Buffer) ReadString ¶
ReadString used to read string.
func (*Buffer) ReadStringEOF ¶
ReadStringEOF reads until the first EOF in the buffer returning a string containing the data up to and not including the EOF
func (*Buffer) ReadStringNUL ¶
ReadStringNUL reads until the first NUL in the buffer returning a string containing the data up to and not including the NUL
func (*Buffer) WriteLenEncode ¶
WriteLenEncode used to write variable length. https://dev.mysql.com/doc/internals/en/integer.html#length-encoded-integer
func (*Buffer) WriteLenEncodeBytes ¶
WriteLenEncodeBytes used to write variable bytes.
func (*Buffer) WriteLenEncodeNUL ¶
func (b *Buffer) WriteLenEncodeNUL()
WriteLenEncodeNUL used to write NUL> 0xfb is represents a NULL in a ProtocolText::ResultsetRow
func (*Buffer) WriteLenEncodeString ¶
WriteLenEncodeString used to write variable string.
func (*Buffer) WriteString ¶
WriteString used to write string.