Documentation
¶
Index ¶
- type SimpleEncoder
- type UintTypes
- type VarEncDataType
- type VarEncEncoder
- type VarIntDeltaEncoder
- func (e *VarIntDeltaEncoder) Decode(data []byte) []uint64
- func (e VarIntDeltaEncoder) DecodeReusable(data []byte, values []uint64)
- func (e *VarIntDeltaEncoder) Encode(values []uint64) []byte
- func (e VarIntDeltaEncoder) EncodeReusable(values []uint64, buf []byte)
- func (e *VarIntDeltaEncoder) Init(expectedCount int)
- type VarIntEncoder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleEncoder ¶
type SimpleEncoder[T UintTypes] struct { // contains filtered or unexported fields }
func (*SimpleEncoder[T]) Decode ¶
func (e *SimpleEncoder[T]) Decode(data []byte) []T
func (SimpleEncoder[T]) DecodeReusable ¶
func (e SimpleEncoder[T]) DecodeReusable(data []byte, values []T)
func (*SimpleEncoder[T]) Encode ¶
func (e *SimpleEncoder[T]) Encode(values []T) []byte
func (SimpleEncoder[T]) EncodeReusable ¶
func (e SimpleEncoder[T]) EncodeReusable(values []T, buf []byte)
func (*SimpleEncoder[T]) Init ¶
func (e *SimpleEncoder[T]) Init(expectedCount int)
type VarEncDataType ¶
type VarEncDataType uint8
const ( SimpleUint64 VarEncDataType = iota SimpleUint32 SimpleUint16 SimpleUint8 SimpleFloat64 SimpleFloat32 VarIntUint64 // Variable length encoding for uint64 // Add new data types here DeltaVarIntUint64 = VarIntUint64 + 64 )
type VarEncEncoder ¶
type VarEncEncoder[T any] interface { Init(expectedCount int) Encode(values []T) []byte Decode(data []byte) []T EncodeReusable(values []T, buf []byte) DecodeReusable(data []byte, values []T) }
func GetVarEncEncoder64 ¶
func GetVarEncEncoder64(t VarEncDataType) VarEncEncoder[uint64]
type VarIntDeltaEncoder ¶
type VarIntDeltaEncoder struct {
// contains filtered or unexported fields
}
func (*VarIntDeltaEncoder) Decode ¶
func (e *VarIntDeltaEncoder) Decode(data []byte) []uint64
func (VarIntDeltaEncoder) DecodeReusable ¶
func (e VarIntDeltaEncoder) DecodeReusable(data []byte, values []uint64)
func (*VarIntDeltaEncoder) Encode ¶
func (e *VarIntDeltaEncoder) Encode(values []uint64) []byte
func (VarIntDeltaEncoder) EncodeReusable ¶
func (e VarIntDeltaEncoder) EncodeReusable(values []uint64, buf []byte)
func (*VarIntDeltaEncoder) Init ¶
func (e *VarIntDeltaEncoder) Init(expectedCount int)
type VarIntEncoder ¶
type VarIntEncoder struct {
// contains filtered or unexported fields
}
func (*VarIntEncoder) Decode ¶
func (e *VarIntEncoder) Decode(data []byte) []uint64
func (VarIntEncoder) DecodeReusable ¶
func (e VarIntEncoder) DecodeReusable(data []byte, values []uint64)
func (*VarIntEncoder) Encode ¶
func (e *VarIntEncoder) Encode(values []uint64) []byte
func (VarIntEncoder) EncodeReusable ¶
func (e VarIntEncoder) EncodeReusable(values []uint64, buf []byte)
func (*VarIntEncoder) Init ¶
func (e *VarIntEncoder) Init(expectedCount int)
Click to show internal directories.
Click to hide internal directories.