Documentation ¶
Index ¶
- func ReadBool(val []byte) bool
- func ReadBytes(val []byte, coll Collation) []byte
- func ReadFloat32(val []byte) float32
- func ReadFloat64(val []byte) float64
- func ReadInt16(val []byte) int16
- func ReadInt24(val []byte) (i int32)
- func ReadInt32(val []byte) int32
- func ReadInt48(val []byte) (i int64)
- func ReadInt64(val []byte) int64
- func ReadInt8(val []byte) int8
- func ReadString(val []byte, coll Collation) string
- func ReadUint16(val []byte) uint16
- func ReadUint24(val []byte) (u uint32)
- func ReadUint32(val []byte) uint32
- func ReadUint48(val []byte) (u uint64)
- func ReadUint64(val []byte) uint64
- func ReadUint8(val []byte) uint8
- func WriteBytes(buf, val []byte, coll Collation) []byte
- func WriteFloat32(buf []byte, val float32) []byte
- func WriteFloat64(buf []byte, val float64) []byte
- func WriteInt16(buf []byte, val int16) []byte
- func WriteInt24(buf []byte, val int32) []byte
- func WriteInt32(buf []byte, val int32) []byte
- func WriteInt64(buf []byte, val int64) []byte
- func WriteInt8(buf []byte, val int8) []byte
- func WriteString(buf []byte, val string, coll Collation) []byte
- func WriteUint16(buf []byte, val uint16) []byte
- func WriteUint24(buf []byte, val uint32) []byte
- func WriteUint32(buf []byte, val uint32) []byte
- func WriteUint48(buf []byte, u uint64) []byte
- func WriteUint64(buf []byte, val uint64) []byte
- func WriteUint8(buf []byte, val uint8) []byte
- type ByteSize
- type Collation
- type Encoding
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFloat32 ¶
func ReadFloat64 ¶
func ReadString ¶
func ReadUint16 ¶
func ReadUint24 ¶
func ReadUint32 ¶
func ReadUint48 ¶
func ReadUint64 ¶
func WriteBytes ¶
func WriteFloat32 ¶
func WriteFloat64 ¶
func WriteInt16 ¶
func WriteInt24 ¶
func WriteInt32 ¶
func WriteInt64 ¶
func WriteUint16 ¶
func WriteUint24 ¶
func WriteUint32 ¶
func WriteUint48 ¶
func WriteUint64 ¶
func WriteUint8 ¶
Types ¶
type ByteSize ¶
type ByteSize uint16
const ( Int8Size ByteSize = 1 Uint8Size ByteSize = 1 Int16Size ByteSize = 2 Uint16Size ByteSize = 2 Int24Size ByteSize = 3 Uint24Size ByteSize = 3 Int32Size ByteSize = 4 Uint32Size ByteSize = 4 Int48Size ByteSize = 6 Uint48Size ByteSize = 6 Int64Size ByteSize = 8 Uint64Size ByteSize = 8 Float32Size ByteSize = 4 Float64Size ByteSize = 8 )
type Encoding ¶
type Encoding uint8
const ( NullEnc Encoding = 0 Int8Enc Encoding = 1 Uint8Enc Encoding = 2 Int16Enc Encoding = 3 Uint16Enc Encoding = 4 Int24Enc Encoding = 5 Uint24Enc Encoding = 6 Int32Enc Encoding = 7 Uint32Enc Encoding = 8 Int64Enc Encoding = 9 Uint64Enc Encoding = 10 Float32Enc Encoding = 11 Float64Enc Encoding = 12 )
Constant Size Encodings
Click to show internal directories.
Click to hide internal directories.