Documentation ¶
Index ¶
Constants ¶
View Source
const ShiftStartInt64 byte = 0x20
Variables ¶
This section is empty.
Functions ¶
func Float64ToInt64 ¶
func Int64ToFloat64 ¶
Types ¶
type PrefixCoded ¶
type PrefixCoded []byte
PrefixCoded is a byte array encoding of 64-bit numeric values shifted by 0-63 bits
func MustNewPrefixCodedInt64 ¶
func MustNewPrefixCodedInt64(in int64, shift uint) PrefixCoded
func NewPrefixCodedInt64 ¶
func NewPrefixCodedInt64(in int64, shift uint) (PrefixCoded, error)
func (PrefixCoded) Int64 ¶
func (p PrefixCoded) Int64() (int64, error)
func (PrefixCoded) Shift ¶
func (p PrefixCoded) Shift() (uint, error)
Shift returns the number of bits shifted returns 0 if in uninitialized state
Click to show internal directories.
Click to hide internal directories.