Documentation
¶
Index ¶
- func Hash28(seed uint64, data []byte) [2]uint64
- func Serialize(obj proto.Message) ([]byte, error)
- type Array
- func (a *Array) EnumValue() []EnumValue
- func (a *Array) Float32() []float32
- func (a *Array) Float64() []float64
- func (a *Array) Get(i uint32) Field
- func (a *Array) Int32() []int32
- func (a *Array) Int64() []int64
- func (a *Array) IsValid() bool
- func (a *Array) Size() uint32
- func (a *Array) Uint32() []uint32
- func (a *Array) Uint64() []uint64
- type BoolArray
- type BytesArray
- type Enum
- type EnumArray
- type EnumValue
- type Field
- func (f *Field) GetArray() Array
- func (f *Field) GetBool() bool
- func (f *Field) GetBoolArray() []bool
- func (f *Field) GetBytes() []byte
- func (f *Field) GetEnumValue() EnumValue
- func (f *Field) GetEnumValueArray() []EnumValue
- func (f *Field) GetFloat32() float32
- func (f *Field) GetFloat32Array() []float32
- func (f *Field) GetFloat64() float64
- func (f *Field) GetFloat64Array() []float64
- func (f *Field) GetInt32() int32
- func (f *Field) GetInt32Array() []int32
- func (f *Field) GetInt64() int64
- func (f *Field) GetInt64Array() []int64
- func (f *Field) GetMap() Map
- func (f *Field) GetMessage() Message
- func (f *Field) GetObject() []byte
- func (f *Field) GetString() string
- func (f *Field) GetUint32() uint32
- func (f *Field) GetUint32Array() []uint32
- func (f *Field) GetUint64() uint64
- func (f *Field) GetUint64Array() []uint64
- func (f *Field) IsValid() bool
- type Float32Array
- type Float64Array
- type Int32Array
- type Int64Array
- type KeySource
- type Map
- func (m *Map) FindByInt32(key int32) Field
- func (m *Map) FindByInt64(key int64) Field
- func (m *Map) FindByString(key string) Field
- func (m *Map) FindByUint32(key uint32) Field
- func (m *Map) FindByUint64(key uint64) Field
- func (m *Map) IsValid() bool
- func (m *Map) Key(i uint32) Field
- func (m *Map) Size() uint32
- func (m *Map) Value(i uint32) Field
- type Message
- type PerfectHash
- type StringArray
- type Uint32Array
- type Uint64Array
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BoolArray ¶
type BoolArray struct {
// contains filtered or unexported fields
}
func AsBoolArray ¶
type BytesArray ¶
type BytesArray struct {
// contains filtered or unexported fields
}
func AsBytesArray ¶
func AsBytesArray(data []byte) BytesArray
func (*BytesArray) Get ¶
func (a *BytesArray) Get(i uint32) []byte
func (*BytesArray) IsValid ¶
func (a *BytesArray) IsValid() bool
func (*BytesArray) Size ¶
func (a *BytesArray) Size() uint32
type EnumArray ¶
type EnumArray[T Enum] struct { // contains filtered or unexported fields }
func AsEnumArray ¶
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
func (*Field) GetBoolArray ¶
func (*Field) GetEnumValue ¶
func (*Field) GetEnumValueArray ¶
func (*Field) GetFloat32 ¶
func (*Field) GetFloat32Array ¶
func (*Field) GetFloat64 ¶
func (*Field) GetFloat64Array ¶
func (*Field) GetInt32Array ¶
func (*Field) GetInt64Array ¶
func (*Field) GetMessage ¶
func (*Field) GetUint32Array ¶
func (*Field) GetUint64Array ¶
type Float32Array ¶
type Float32Array struct {
// contains filtered or unexported fields
}
func AsFloat32Array ¶
func AsFloat32Array(data []byte) Float32Array
func (*Float32Array) Get ¶
func (a *Float32Array) Get(i uint32) float32
func (*Float32Array) IsValid ¶
func (a *Float32Array) IsValid() bool
func (*Float32Array) Raw ¶
func (a *Float32Array) Raw() []float32
func (*Float32Array) Size ¶
func (a *Float32Array) Size() uint32
type Float64Array ¶
type Float64Array struct {
// contains filtered or unexported fields
}
func AsFloat64Array ¶
func AsFloat64Array(data []byte) Float64Array
func (*Float64Array) Get ¶
func (a *Float64Array) Get(i uint32) float64
func (*Float64Array) IsValid ¶
func (a *Float64Array) IsValid() bool
func (*Float64Array) Raw ¶
func (a *Float64Array) Raw() []float64
func (*Float64Array) Size ¶
func (a *Float64Array) Size() uint32
type Int32Array ¶
type Int32Array struct {
// contains filtered or unexported fields
}
func AsInt32Array ¶
func AsInt32Array(data []byte) Int32Array
func (*Int32Array) Get ¶
func (a *Int32Array) Get(i uint32) int32
func (*Int32Array) IsValid ¶
func (a *Int32Array) IsValid() bool
func (*Int32Array) Raw ¶
func (a *Int32Array) Raw() []int32
func (*Int32Array) Size ¶
func (a *Int32Array) Size() uint32
type Int64Array ¶
type Int64Array struct {
// contains filtered or unexported fields
}
func AsInt64Array ¶
func AsInt64Array(data []byte) Int64Array
func (*Int64Array) Get ¶
func (a *Int64Array) Get(i uint32) int64
func (*Int64Array) IsValid ¶
func (a *Int64Array) IsValid() bool
func (*Int64Array) Raw ¶
func (a *Int64Array) Raw() []int64
func (*Int64Array) Size ¶
func (a *Int64Array) Size() uint32
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
func (*Map) FindByInt32 ¶
func (*Map) FindByInt64 ¶
func (*Map) FindByString ¶
func (*Map) FindByUint32 ¶
func (*Map) FindByUint64 ¶
type PerfectHash ¶
type PerfectHash struct {
// contains filtered or unexported fields
}
func Build ¶
func Build(src KeySource) PerfectHash
func (*PerfectHash) Data ¶
func (h *PerfectHash) Data() []byte
func (*PerfectHash) Init ¶
func (h *PerfectHash) Init(data []byte) bool
func (*PerfectHash) IsValid ¶
func (h *PerfectHash) IsValid() bool
func (*PerfectHash) Locate ¶
func (h *PerfectHash) Locate(key []byte) uint32
func (*PerfectHash) Size ¶
func (h *PerfectHash) Size() uint32
type StringArray ¶
type StringArray struct {
// contains filtered or unexported fields
}
func AsStringArray ¶
func AsStringArray(data []byte) StringArray
func (*StringArray) Get ¶
func (a *StringArray) Get(i uint32) string
func (*StringArray) IsValid ¶
func (a *StringArray) IsValid() bool
func (*StringArray) Size ¶
func (a *StringArray) Size() uint32
type Uint32Array ¶
type Uint32Array struct {
// contains filtered or unexported fields
}
func AsUint32Array ¶
func AsUint32Array(data []byte) Uint32Array
func (*Uint32Array) Get ¶
func (a *Uint32Array) Get(i uint32) uint32
func (*Uint32Array) IsValid ¶
func (a *Uint32Array) IsValid() bool
func (*Uint32Array) Raw ¶
func (a *Uint32Array) Raw() []uint32
func (*Uint32Array) Size ¶
func (a *Uint32Array) Size() uint32
type Uint64Array ¶
type Uint64Array struct {
// contains filtered or unexported fields
}
func AsUint64Array ¶
func AsUint64Array(data []byte) Uint64Array
func (*Uint64Array) Get ¶
func (a *Uint64Array) Get(i uint32) uint64
func (*Uint64Array) IsValid ¶
func (a *Uint64Array) IsValid() bool
func (*Uint64Array) Raw ¶
func (a *Uint64Array) Raw() []uint64
func (*Uint64Array) Size ¶
func (a *Uint64Array) Size() uint32
Click to show internal directories.
Click to hide internal directories.