Documentation ¶
Index ¶
- func AppendBool(buf []byte, val bool) []byte
- func AppendBytes(buf []byte, val []byte) []byte
- func AppendFloatInt(buf []byte, val float64, digits int) []byte
- func AppendFloatIntRounded(buf []byte, val float64, digits int) []byte
- func AppendItems[T any](buf []byte, appendItem func([]byte, T) []byte, items ...T) []byte
- func AppendItemsPtr[T any](buf []byte, appendItem func([]byte, *T) []byte, items ...T) []byte
- func AppendString(buf []byte, val string) []byte
- func AppendVarInt(buf []byte, val uint64) []byte
- func AppendVarInt128(buf []byte, high, low uint64) []byte
- func AppendVarInt1k(buf []byte, val uint64) []byte
- func BoolTo[T uint8 | int8 | uint16 | int16 | uint32 | int32 | uint64 | int64 | uint | int](val bool) T
- func BoolToInt(val bool) int
- func ConsumeVarInt(buf []byte) (val uint64, byteCount int)
- func ConsumeVarInt128(buf []byte) (high, low uint64, byteCount int)
- func ExtAppendBits(buf []byte, bits ...bool) []byte
- func ExtAppendDictAsRawString(buf []byte, dict *ExtDict[string], val string) []byte
- func ExtAppendDictString(buf []byte, dict *ExtDict[string], val string) []byte
- func ExtAppendDualVarInt(buf []byte, high, low uint64, lowBits int) []byte
- func ExtAppendDynDictString(buf []byte, dict *ExtDict[string], val string) []byte
- func ExtAppendDynDictString1k(buf []byte, dict *ExtDict[string], val string) []byte
- func ExtAppendDynDictUint64(buf []byte, dict *ExtDict[uint64], val uint64) []byte
- func ExtAppendPrice(buf []byte, val float64) []byte
- func ExtAppendPriceCents(buf []byte, val int) []byte
- func ExtAppendRleString(buf []byte, val string) []byte
- func ExtAppendSlice[T KeyTypes](buf []byte, val []T) []byte
- func ExtAppendSliceFunc[T any](buf []byte, val []T, appendFunc func(buf []byte, val *T) []byte) []byte
- func ExtAppendTs(buf []byte, ts int64) []byte
- func ExtReadBits(buf []byte, ofs int, bits ...*bool) int
- func ExtReadBitsSlice(buf []byte, ofs int, bits []bool) int
- func ExtReadDictString(buf []byte, ofs int, dict *ExtDict[string], val *string) int
- func ExtReadDualVarInt(buf []byte, ofs int, high, low *uint64, lowBits int) int
- func ExtReadDynDictString(buf []byte, ofs int, dict *ExtDict[string], val *string) int
- func ExtReadDynDictString1k(buf []byte, ofs int, dict *ExtDict[string], val *string) int
- func ExtReadDynDictUint64(buf []byte, ofs int, dict *ExtDict[uint64], val *uint64) int
- func ExtReadPrice(buf []byte, ofs int, val *float64) int
- func ExtReadPriceCents(buf []byte, ofs int, val *int) int
- func ExtReadRleString(buf []byte, ofs int, val *string) int
- func ExtReadSlice[T KeyTypes](buf []byte, ofs int, val *[]T) int
- func ExtReadSliceFunc[T any](buf []byte, ofs int, val *[]T, readFunc func(buf []byte, ofs int, val *T) int) int
- func ExtReadTs(buf []byte, ofs int, val *int64) int
- func FloatFromInt(val int, digits int) float64
- func FloatToInt(val float64, digits int) int
- func FloatToIntRounded(val float64, digits int) int
- func InsertVarInt(buf []byte, pos int, val uint64) []byte
- func InsertVarIntUsePlaceholder(buf []byte, pos, placeholderBytes int, val uint64) []byte
- func IntToBool[T uint8 | int8 | uint16 | int16 | uint32 | int32 | uint64 | int64 | uint | int](val T) bool
- func RawAppendBool(buf []byte, val bool) []byte
- func RawAppendComplex128(buf []byte, val complex128) []byte
- func RawAppendComplex64(buf []byte, val complex64) []byte
- func RawAppendFloat32(buf []byte, val float32) []byte
- func RawAppendFloat64(buf []byte, val float64) []byte
- func RawAppendFloat64Lite(buf []byte, val float64) []byte
- func RawAppendInt(buf []byte, val int) []byte
- func RawAppendInt16(buf []byte, val int16) []byte
- func RawAppendInt24(buf []byte, val int32) []byte
- func RawAppendInt32(buf []byte, val int32) []byte
- func RawAppendInt40(buf []byte, val int64) []byte
- func RawAppendInt48(buf []byte, val int64) []byte
- func RawAppendInt56(buf []byte, val int64) []byte
- func RawAppendInt64(buf []byte, val int64) []byte
- func RawAppendInt8(buf []byte, val int8) []byte
- func RawAppendUint(buf []byte, val uint) []byte
- func RawAppendUint16(buf []byte, val uint16) []byte
- func RawAppendUint24(buf []byte, val uint32) []byte
- func RawAppendUint32(buf []byte, val uint32) []byte
- func RawAppendUint40(buf []byte, val uint64) []byte
- func RawAppendUint48(buf []byte, val uint64) []byte
- func RawAppendUint56(buf []byte, val uint64) []byte
- func RawAppendUint64(buf []byte, val uint64) []byte
- func RawAppendUint8(buf []byte, val uint8) []byte
- func RawReadBool(buf []byte, ofs int, val *bool) int
- func RawReadComplex128(buf []byte, ofs int, val *complex128) int
- func RawReadComplex64(buf []byte, ofs int, val *complex64) int
- func RawReadFloat32(buf []byte, ofs int, val *float32) int
- func RawReadFloat64(buf []byte, ofs int, val *float64) int
- func RawReadFloat64Lite(buf []byte, ofs int, val *float64) int
- func RawReadInt(buf []byte, ofs int, val *int) int
- func RawReadInt16(buf []byte, ofs int, val *int16) int
- func RawReadInt24(buf []byte, ofs int, val *int32) int
- func RawReadInt32(buf []byte, ofs int, val *int32) int
- func RawReadInt40(buf []byte, ofs int, val *int64) int
- func RawReadInt48(buf []byte, ofs int, val *int64) int
- func RawReadInt56(buf []byte, ofs int, val *int64) int
- func RawReadInt64(buf []byte, ofs int, val *int64) int
- func RawReadInt8(buf []byte, ofs int, val *int8) int
- func RawReadUint(buf []byte, ofs int, val *uint) int
- func RawReadUint16(buf []byte, ofs int, val *uint16) int
- func RawReadUint24(buf []byte, ofs int, val *uint32) int
- func RawReadUint32(buf []byte, ofs int, val *uint32) int
- func RawReadUint40(buf []byte, ofs int, val *uint64) int
- func RawReadUint48(buf []byte, ofs int, val *uint64) int
- func RawReadUint56(buf []byte, ofs int, val *uint64) int
- func RawReadUint64(buf []byte, ofs int, val *uint64) int
- func RawReadUint8(buf []byte, ofs int, val *uint8) int
- func ReadBool(buf []byte, ofs int, val *bool) (byteCount int)
- func ReadBytes(buf []byte, ofs int) (val []byte, byteCount int)
- func ReadBytesUnsafe(buf []byte, ofs int) (val []byte, byteCount int)
- func ReadFloatInt(buf []byte, ofs int, val *float64, digits int) int
- func ReadString(buf []byte, ofs int, val *string) (byteCount int)
- func ReadStringUnsafe(buf []byte, ofs int) (val string, byteCount int)
- func ReadVarInt(buf []byte, ofs int, val *uint64) (byteCount int)
- func ReadVarInt128(buf []byte, ofs int, high, low *uint64) (byteCount int)
- func ReadVarInt1k(buf []byte, ofs int, val *uint64) (byteCount int)
- func ReadVarIntFromReader(r io.Reader) (val uint64, byteCount int, err error)
- func SetVarInt(buf []byte, val uint64) (byteCount int)
- func SetVarIntFixSize(buf []byte, val uint64, fixByteCount int) (byteCount int)
- func SizeBytes(val []byte) int
- func SizeString(val string) int
- func SizeVarInt(v uint64) int
- func SqlAppendBlob(buf []byte, val []byte) []byte
- func SqlAppendBool(buf []byte, val bool) []byte
- func SqlAppendByte(buf []byte, val byte) []byte
- func SqlAppendFloat64(buf []byte, val float64) []byte
- func SqlAppendInt(buf []byte, val int) []byte
- func SqlAppendInt16(buf []byte, val int16) []byte
- func SqlAppendInt1k(buf []byte, val int) []byte
- func SqlAppendInt32(buf []byte, val int32) []byte
- func SqlAppendInt64(buf []byte, val int64) []byte
- func SqlAppendNullBool(buf []byte, val sql.NullBool) []byte
- func SqlAppendNullByte(buf []byte, val sql.NullByte) []byte
- func SqlAppendNullFloat64(buf []byte, val sql.NullFloat64) []byte
- func SqlAppendNullInt16(buf []byte, val sql.NullInt16) []byte
- func SqlAppendNullInt32(buf []byte, val sql.NullInt32) []byte
- func SqlAppendNullInt64(buf []byte, val sql.NullInt64) []byte
- func SqlAppendNullString(buf []byte, val sql.NullString) []byte
- func SqlAppendNullTime(buf []byte, val sql.NullTime) []byte
- func SqlAppendString(buf []byte, val string) []byte
- func SqlAppendTime(buf []byte, val time.Time) []byte
- func SqlAppendUint(buf []byte, val uint) []byte
- func SqlAppendUint16(buf []byte, val uint16) []byte
- func SqlAppendUint1k(buf []byte, val uint) []byte
- func SqlAppendUint32(buf []byte, val uint32) []byte
- func SqlAppendUint64(buf []byte, val uint64) []byte
- func SqlReadBlob(buf []byte, ofs int, val *[]byte) int
- func SqlReadBool(buf []byte, ofs int, val *bool) int
- func SqlReadByte(buf []byte, ofs int, val *byte) int
- func SqlReadFloat64(buf []byte, ofs int, val *float64) int
- func SqlReadInt(buf []byte, ofs int, val *int) int
- func SqlReadInt16(buf []byte, ofs int, val *int16) int
- func SqlReadInt1k(buf []byte, ofs int, val *int) int
- func SqlReadInt32(buf []byte, ofs int, val *int32) int
- func SqlReadInt64(buf []byte, ofs int, val *int64) int
- func SqlReadNullBool(buf []byte, ofs int, val *sql.NullBool) int
- func SqlReadNullByte(buf []byte, ofs int, val *sql.NullByte) int
- func SqlReadNullFloat64(buf []byte, ofs int, val *sql.NullFloat64) int
- func SqlReadNullInt16(buf []byte, ofs int, val *sql.NullInt16) int
- func SqlReadNullInt32(buf []byte, ofs int, val *sql.NullInt32) int
- func SqlReadNullInt64(buf []byte, ofs int, val *sql.NullInt64) int
- func SqlReadNullString(buf []byte, ofs int, val *sql.NullString) int
- func SqlReadNullTime(buf []byte, ofs int, val *sql.NullTime) int
- func SqlReadString(buf []byte, ofs int, val *string) int
- func SqlReadTime(buf []byte, ofs int, val *time.Time) int
- func SqlReadUint(buf []byte, ofs int, val *uint) int
- func SqlReadUint16(buf []byte, ofs int, val *uint16) int
- func SqlReadUint1k(buf []byte, ofs int, val *uint) int
- func SqlReadUint32(buf []byte, ofs int, val *uint32) int
- func SqlReadUint64(buf []byte, ofs int, val *uint64) int
- func UnZigZag(val uint64) int64
- func UnsafeBytesToString(val []byte) string
- func UnsafeStringToBytes(val string) []byte
- func WriteBytes(buf []byte, ofs int, val []byte) (byteCount int)
- func WriteString(buf []byte, ofs int, val string) (byteCount int)
- func WriteVarInt(buf []byte, ofs int, val uint64) (byteCount int)
- func ZigZag(val int64) uint64
- type ExtChanger
- func NewExtChanger[T comparable](qappend func(buf []byte, val T) []byte, ...) *ExtChanger[T]
- func NewExtChangerByte() *ExtChanger[byte]
- func NewExtChangerDictString(dict *ExtDict[string]) *ExtChanger[string]
- func NewExtChangerInt() *ExtChanger[int]
- func NewExtChangerInt16() *ExtChanger[int16]
- func NewExtChangerString() *ExtChanger[string]
- func NewExtChangerUint() *ExtChanger[uint]
- func (ec *ExtChanger[T]) AppendNext(buf []byte) []byte
- func (ec *ExtChanger[T]) AppendNextForce(buf []byte) []byte
- func (ec *ExtChanger[T]) Clone() *ExtChanger[T]
- func (ec *ExtChanger[T]) PrepareNext(val T) (changed bool)
- func (ec *ExtChanger[T]) ReadNext(buf []byte, ofs int, changed bool, val *T) int
- func (ec *ExtChanger[T]) Reset()
- func (ec *ExtChanger[T]) ResetValue(val T)
- type ExtDict
- type ExtDiffer
- func NewExtDiffer[T any](encoder func(last, next T) (diff T), decoder func(last, diff T) (next T), ...) *ExtDiffer[T]
- func NewExtDifferInt() *ExtDiffer[int]
- func NewExtDifferInt1k() *ExtDiffer[int]
- func NewExtDifferPrice() *ExtDiffer[float64]
- func NewExtDifferUint() *ExtDiffer[uint]
- func NewExtDifferUint1k() *ExtDiffer[uint]
- func NewExtDifferUintDec() *ExtDiffer[uint]
- func NewExtDifferUintDec1k() *ExtDiffer[uint]
- func NewFloatIntDiffer(digits int) *ExtDiffer[float64]
- func NewFloatIntDifferRounded(digits int) *ExtDiffer[float64]
- func (ed *ExtDiffer[T]) AppendNext(buf []byte, val T) []byte
- func (ed *ExtDiffer[T]) AppendNextDifErr(buf []byte, val T) ([]byte, T)
- func (ed *ExtDiffer[T]) Clone() *ExtDiffer[T]
- func (ed *ExtDiffer[T]) ReadNext(buf []byte, ofs int, val *T) int
- func (ed *ExtDiffer[T]) ReadNextDifErr(buf []byte, ofs int, val *T) (int, T)
- func (ed *ExtDiffer[T]) Reset()
- func (ed *ExtDiffer[T]) ResetValue(val T)
- type Indexer
- func (idx *Indexer[T]) Add(key T, pos, length int)
- func (idx *Indexer[T]) AddEndPos(key T, endPos int)
- func (idx *Indexer[T]) AddStartPos(key T, startPos int)
- func (idx *Indexer[T]) Get(key T) IndexerIndex
- func (idx *Indexer[T]) GetKeys() []T
- func (idx *Indexer[T]) GetKeysSortedByPos() []T
- func (idx *Indexer[T]) Qappend(buf []byte) []byte
- func (idx *Indexer[T]) Qread(buf []byte) int
- type IndexerIndex
- type KeyTypes
- type Qhandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendBool ¶
func AppendBytes ¶
func AppendItems ¶
func AppendItemsPtr ¶
func AppendString ¶
func AppendVarInt ¶
func AppendVarInt128 ¶
func AppendVarInt1k ¶
func ConsumeVarInt ¶
func ConsumeVarInt128 ¶
func ExtAppendBits ¶
func ExtAppendDictString ¶
func ExtAppendDualVarInt ¶
func ExtAppendDynDictString ¶
func ExtAppendDynDictUint64 ¶
func ExtAppendPrice ¶
func ExtAppendPriceCents ¶
func ExtAppendRleString ¶
func ExtAppendSlice ¶
func ExtAppendSliceFunc ¶
func ExtAppendTs ¶
func ExtReadDictString ¶
func ExtReadDualVarInt ¶
func ExtReadDynDictString ¶
func ExtReadDynDictString1k ¶
func ExtReadDynDictUint64 ¶
func ExtReadSliceFunc ¶
func FloatFromInt ¶
func FloatToInt ¶
func FloatToIntRounded ¶
func RawAppendBool ¶
func RawAppendComplex128 ¶
func RawAppendComplex128(buf []byte, val complex128) []byte
func RawAppendComplex64 ¶
func RawAppendFloat32 ¶
func RawAppendFloat64 ¶
func RawAppendFloat64Lite ¶
func RawAppendInt ¶
func RawAppendInt16 ¶
func RawAppendInt24 ¶
func RawAppendInt32 ¶
func RawAppendInt40 ¶
func RawAppendInt48 ¶
func RawAppendInt56 ¶
func RawAppendInt64 ¶
func RawAppendInt8 ¶
func RawAppendUint ¶
func RawAppendUint16 ¶
func RawAppendUint24 ¶
func RawAppendUint32 ¶
func RawAppendUint40 ¶
func RawAppendUint48 ¶
func RawAppendUint56 ¶
func RawAppendUint64 ¶
func RawAppendUint8 ¶
func RawReadComplex128 ¶
func RawReadComplex128(buf []byte, ofs int, val *complex128) int
func ReadVarIntFromReader ¶
func SetVarIntFixSize ¶
func SizeString ¶
func SizeVarInt ¶
func SqlAppendBlob ¶
func SqlAppendBool ¶
func SqlAppendByte ¶
func SqlAppendFloat64 ¶
func SqlAppendInt ¶
func SqlAppendInt16 ¶
func SqlAppendInt1k ¶
func SqlAppendInt32 ¶
func SqlAppendInt64 ¶
func SqlAppendNullFloat64 ¶
func SqlAppendNullFloat64(buf []byte, val sql.NullFloat64) []byte
func SqlAppendNullString ¶
func SqlAppendNullString(buf []byte, val sql.NullString) []byte
func SqlAppendString ¶
func SqlAppendUint ¶
func SqlAppendUint16 ¶
func SqlAppendUint1k ¶
func SqlAppendUint32 ¶
func SqlAppendUint64 ¶
func SqlReadNullFloat64 ¶
func SqlReadNullFloat64(buf []byte, ofs int, val *sql.NullFloat64) int
func SqlReadNullString ¶
func SqlReadNullString(buf []byte, ofs int, val *sql.NullString) int
func UnsafeBytesToString ¶
func UnsafeStringToBytes ¶
Types ¶
type ExtChanger ¶
type ExtChanger[T comparable] struct { LastValue T // contains filtered or unexported fields }
func NewExtChanger ¶
func NewExtChanger[T comparable](qappend func(buf []byte, val T) []byte, qread func(buf []byte, ofs int, val *T) int, startValue T) *ExtChanger[T]
func NewExtChangerByte ¶
func NewExtChangerByte() *ExtChanger[byte]
func NewExtChangerDictString ¶
func NewExtChangerDictString(dict *ExtDict[string]) *ExtChanger[string]
func NewExtChangerInt ¶
func NewExtChangerInt() *ExtChanger[int]
func NewExtChangerInt16 ¶
func NewExtChangerInt16() *ExtChanger[int16]
func NewExtChangerString ¶
func NewExtChangerString() *ExtChanger[string]
func NewExtChangerUint ¶
func NewExtChangerUint() *ExtChanger[uint]
func (*ExtChanger[T]) AppendNext ¶
func (ec *ExtChanger[T]) AppendNext(buf []byte) []byte
func (*ExtChanger[T]) AppendNextForce ¶
func (ec *ExtChanger[T]) AppendNextForce(buf []byte) []byte
func (*ExtChanger[T]) Clone ¶
func (ec *ExtChanger[T]) Clone() *ExtChanger[T]
func (*ExtChanger[T]) PrepareNext ¶
func (ec *ExtChanger[T]) PrepareNext(val T) (changed bool)
func (*ExtChanger[T]) ReadNext ¶
func (ec *ExtChanger[T]) ReadNext(buf []byte, ofs int, changed bool, val *T) int
func (*ExtChanger[T]) Reset ¶
func (ec *ExtChanger[T]) Reset()
func (*ExtChanger[T]) ResetValue ¶
func (ec *ExtChanger[T]) ResetValue(val T)
type ExtDict ¶
type ExtDict[T comparable] struct { SearchMap map[T]uint64 UseMap []T }
func NewExtDict ¶
func NewExtDict[T comparable](values ...T) (result *ExtDict[T])
type ExtDiffer ¶
type ExtDiffer[T any] struct { LastValue T // contains filtered or unexported fields }
func NewExtDiffer ¶
func NewExtDifferInt ¶
func NewExtDifferInt1k ¶
func NewExtDifferPrice ¶
func NewExtDifferUint ¶
func NewExtDifferUint1k ¶
func NewExtDifferUintDec ¶
func NewExtDifferUintDec1k ¶
func NewFloatIntDiffer ¶
func (*ExtDiffer[T]) AppendNext ¶
func (*ExtDiffer[T]) AppendNextDifErr ¶
func (*ExtDiffer[T]) ReadNextDifErr ¶
func (*ExtDiffer[T]) ResetValue ¶
func (ed *ExtDiffer[T]) ResetValue(val T)
type Indexer ¶
type Indexer[T KeyTypes] struct { // contains filtered or unexported fields }
func NewIndexer ¶
func (*Indexer[T]) AddStartPos ¶
func (*Indexer[T]) Get ¶
func (idx *Indexer[T]) Get(key T) IndexerIndex
func (*Indexer[T]) GetKeysSortedByPos ¶
func (idx *Indexer[T]) GetKeysSortedByPos() []T
type IndexerIndex ¶
func (IndexerIndex) CutSlice ¶
func (pos IndexerIndex) CutSlice(slice []byte) []byte
Source Files ¶
Click to show internal directories.
Click to hide internal directories.