Documentation ¶
Index ¶
- func CopyBytes(src []byte) []byte
- func FullBytes(b []byte) bool
- func IncBytes(cur []byte) (next []byte)
- func ReadBool(buf *bytes.Buffer) (bool, error)
- func ReadByte(buf *bytes.Buffer) (byte, error)
- func ReadFloat32(buf *bytes.Buffer) (float32, error)
- func ReadFloat64(buf *bytes.Buffer) (float64, error)
- func ReadInt16(buf *bytes.Buffer) (int16, error)
- func ReadInt32(buf *bytes.Buffer) (int32, error)
- func ReadInt64(buf *bytes.Buffer) (int64, error)
- func ReadInt8(buf *bytes.Buffer) (int8, error)
- func ReadShortString(buf *bytes.Buffer) (string, error)
- func ReadUInt16(buf *bytes.Buffer) (uint16, error)
- func ReadUInt32(buf *bytes.Buffer) (uint32, error)
- func ReadUInt64(buf *bytes.Buffer) (uint64, error)
- func SafeWriteBuf(b *bytes.Buffer, data any)
- func ToBytes(value ...interface{}) []byte
- func WriteBool(buf *bytes.Buffer, value bool)
- func WriteByte(buf *bytes.Buffer, value byte)
- func WriteFloat32(buf *bytes.Buffer, value float32)
- func WriteFloat64(buf *bytes.Buffer, value float64)
- func WriteInt16(buf *bytes.Buffer, value int16)
- func WriteInt32(buf *bytes.Buffer, value int32)
- func WriteInt64(buf *bytes.Buffer, value int64)
- func WriteInt8(buf *bytes.Buffer, value int8)
- func WriteShortString(buf *bytes.Buffer, str string)
- func WriteUint16(buf *bytes.Buffer, value uint16)
- func WriteUint32(buf *bytes.Buffer, value uint32)
- func WriteUint64(buf *bytes.Buffer, value uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IncBytes ¶
Increments by one bit low byte and returns the result.
Useful to obtain right margin of half-open range of partially filled clustering columns
func ReadShortString ¶
Reads short (< 64K) string from a buffer
func SafeWriteBuf ¶
Writes data to buffer.
Hints: ¶
- To exclude slow write through binary.Write() cast user types to go-types as possible.
- To avoid escaping values to heap during interface conversion use Write××× routines as possible.
func ToBytes ¶
func ToBytes(value ...interface{}) []byte
Returns a slice of bytes built from the specified values, written from left to right
func WriteShortString ¶
Writes short (< 64K) string into a buffer
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.