Documentation ¶
Overview ¶
package flatbuffers provides facilities to read and write flatbuffers
objects.
Index ¶
- Constants
- Variables
- func B2S(b []byte) string
- func GetBool(buf []byte) bool
- func GetByte(buf []byte) byte
- func GetFloat32(buf []byte) float32
- func GetFloat64(buf []byte) float64
- func GetInt16(buf []byte) (n int16)
- func GetInt32(buf []byte) (n int32)
- func GetInt64(buf []byte) (n int64)
- func GetInt8(buf []byte) (n int8)
- func GetRootAs(buf []byte, offset UOffsetT, fb FlatBuffer)
- func GetUint16(buf []byte) (n uint16)
- func GetUint32(buf []byte) (n uint32)
- func GetUint64(buf []byte) (n uint64)
- func GetUint8(buf []byte) (n uint8)
- func Prepad(size, additionalBytes int) (int, int)
- func S2B(s string) (b []byte)
- func WriteBool(buf []byte, b bool)
- func WriteByte(buf []byte, n byte)
- func WriteFloat32(buf []byte, n float32)
- func WriteFloat64(buf []byte, n float64)
- func WriteInt16(buf []byte, n int16)
- func WriteInt32(buf []byte, n int32)
- func WriteInt64(buf []byte, n int64)
- func WriteInt8(buf []byte, n int8)
- func WriteSOffsetT(buf []byte, n SOffsetT)
- func WriteUOffsetT(buf []byte, n UOffsetT)
- func WriteUint16(buf []byte, n uint16)
- func WriteUint32(buf []byte, n uint32)
- func WriteUint64(buf []byte, n uint64)
- func WriteUint8(buf []byte, n uint8)
- func WriteVOffsetT(buf []byte, n VOffsetT)
- type Builder
- func (b *Builder) CreateByteString(s []byte) UOffsetT
- func (b *Builder) CreateByteVector(v []byte) UOffsetT
- func (b *Builder) CreateSharedString(s string) UOffsetT
- func (b *Builder) CreateString(s string) UOffsetT
- func (b *Builder) EndObject() UOffsetT
- func (b *Builder) EndVector(vectorNumElems int) UOffsetT
- func (b *Builder) Finish(rootTable UOffsetT)
- func (b *Builder) FinishWithFileIdentifier(rootTable UOffsetT, fid []byte)
- func (b *Builder) FinishedBytes() []byte
- func (b *Builder) Head() UOffsetT
- func (b *Builder) Offset() UOffsetT
- func (b *Builder) Pad(n int)
- func (b *Builder) PlaceBool(x bool)
- func (b *Builder) PlaceByte(x byte)
- func (b *Builder) PlaceFloat32(x float32)
- func (b *Builder) PlaceFloat64(x float64)
- func (b *Builder) PlaceInt16(x int16)
- func (b *Builder) PlaceInt32(x int32)
- func (b *Builder) PlaceInt64(x int64)
- func (b *Builder) PlaceInt8(x int8)
- func (b *Builder) PlaceSOffsetT(x SOffsetT)
- func (b *Builder) PlaceUOffsetT(x UOffsetT)
- func (b *Builder) PlaceUint16(x uint16)
- func (b *Builder) PlaceUint32(x uint32)
- func (b *Builder) PlaceUint64(x uint64)
- func (b *Builder) PlaceUint8(x uint8)
- func (b *Builder) PlaceVOffsetT(x VOffsetT)
- func (b *Builder) Prep(size, additionalBytes int)
- func (b *Builder) PrependBool(x bool)
- func (b *Builder) PrependBoolSlot(o int, x, d bool)
- func (b *Builder) PrependByte(x byte)
- func (b *Builder) PrependByteSlot(o int, x, d byte)
- func (b *Builder) PrependFloat32(x float32)
- func (b *Builder) PrependFloat32Slot(o int, x, d float32)
- func (b *Builder) PrependFloat64(x float64)
- func (b *Builder) PrependFloat64Slot(o int, x, d float64)
- func (b *Builder) PrependInt16(x int16)
- func (b *Builder) PrependInt16Slot(o int, x, d int16)
- func (b *Builder) PrependInt32(x int32)
- func (b *Builder) PrependInt32Slot(o int, x, d int32)
- func (b *Builder) PrependInt64(x int64)
- func (b *Builder) PrependInt64Slot(o int, x, d int64)
- func (b *Builder) PrependInt8(x int8)
- func (b *Builder) PrependInt8Slot(o int, x, d int8)
- func (b *Builder) PrependSOffsetT(off SOffsetT)
- func (b *Builder) PrependStructSlot(voffset int, x, d UOffsetT)
- func (b *Builder) PrependUOffsetT(off UOffsetT)
- func (b *Builder) PrependUOffsetTSlot(o int, x, d UOffsetT)
- func (b *Builder) PrependUint16(x uint16)
- func (b *Builder) PrependUint16Slot(o int, x, d uint16)
- func (b *Builder) PrependUint32(x uint32)
- func (b *Builder) PrependUint32Slot(o int, x, d uint32)
- func (b *Builder) PrependUint64(x uint64)
- func (b *Builder) PrependUint64Slot(o int, x, d uint64)
- func (b *Builder) PrependUint8(x uint8)
- func (b *Builder) PrependUint8Slot(o int, x, d uint8)
- func (b *Builder) PrependVOffsetT(x VOffsetT)
- func (b *Builder) Reset()
- func (b *Builder) Slot(slotnum int)
- func (b *Builder) StartObject(numfields int)
- func (b *Builder) StartVector(elemSize, numElems, alignment int) UOffsetT
- func (b *Builder) StringsVector(str ...string) UOffsetT
- func (b *Builder) VectorArray(off ...UOffsetT) UOffsetT
- func (b *Builder) WriteVtable() (n UOffsetT)
- type FieldDef
- type FieldRegister
- func (r *FieldRegister) Close()
- func (r *FieldRegister) Done() bool
- func (r *FieldRegister) Grow()
- func (r *FieldRegister) Init(n uint32)
- func (r *FieldRegister) Len() int
- func (r *FieldRegister) Pop() (v VField, b bool)
- func (r *FieldRegister) Push(v VField)
- func (r *FieldRegister) PushAt(off int, v VField)
- func (r *FieldRegister) Size() int
- type FieldType
- type FlatBuffer
- type FlatBuilder
- type FlatbuffersCodec
- type Header
- type Queue
- type Register
- type SOffsetT
- type Scalar
- func (b *Scalar) Bool(x bool) VField
- func (b *Scalar) Byte(x byte) VField
- func (b *Scalar) ByteSize() int
- func (b *Scalar) FinishedBytes() []byte
- func (b *Scalar) Float32(x float32) VField
- func (b *Scalar) Float64(x float64) VField
- func (b *Scalar) Int16(x int16) VField
- func (b *Scalar) Int32(x int32) VField
- func (b *Scalar) Int64(x int64) VField
- func (b *Scalar) Int8(x int8) VField
- func (b *Scalar) IsFinished() bool
- func (b *Scalar) IsVector() bool
- func (b *Scalar) ObjectSize() int
- func (b *Scalar) Press() error
- func (b *Scalar) Release() bool
- func (b *Scalar) Type() FieldType
- func (b *Scalar) TypeName() string
- func (b *Scalar) Ubyte(x int8) VField
- func (b *Scalar) Uint16(x uint16) VField
- func (b *Scalar) Uint32(x uint32) VField
- func (b *Scalar) Uint64(x uint64) VField
- func (b *Scalar) Uint8(x uint8) VField
- type Stack
- type Struct
- type StructBuffers
- func (b *StructBuffers) Bool(x bool, n UOffsetT) *StructBuffers
- func (b *StructBuffers) Byte(x byte, n UOffsetT) *StructBuffers
- func (b *StructBuffers) ByteSize() int
- func (b *StructBuffers) FinishedBytes() []byte
- func (b *StructBuffers) Float32(x float32, n UOffsetT) *StructBuffers
- func (b *StructBuffers) Float64(x float64, n UOffsetT) *StructBuffers
- func (b *StructBuffers) Int16(x int16, n UOffsetT) *StructBuffers
- func (b *StructBuffers) Int32(x int32, n UOffsetT) *StructBuffers
- func (b *StructBuffers) Int64(x int64, n UOffsetT) *StructBuffers
- func (b *StructBuffers) Int8(x int8, n UOffsetT) *StructBuffers
- func (b *StructBuffers) IsFinished() bool
- func (b *StructBuffers) IsVector() bool
- func (b *StructBuffers) ObjectSize() int
- func (b *StructBuffers) Pad(n int, u UOffsetT) *StructBuffers
- func (b *StructBuffers) Prep(minalign, bytesize int) *StructBuffers
- func (b *StructBuffers) Press() error
- func (b *StructBuffers) Release() bool
- func (b *StructBuffers) SetName(name string) *StructBuffers
- func (b *StructBuffers) Size() int
- func (b *StructBuffers) StructEnd() *StructBuffers
- func (b *StructBuffers) StructStart(minalign, bytesize, slot int) *StructBuffers
- func (b *StructBuffers) Type() FieldType
- func (b *StructBuffers) TypeName() string
- func (b *StructBuffers) Uint16(x uint16, n UOffsetT) *StructBuffers
- func (b *StructBuffers) Uint32(x uint32, n UOffsetT) *StructBuffers
- func (b *StructBuffers) Uint64(x uint64, n UOffsetT) *StructBuffers
- func (b *StructBuffers) Uint8(x uint8, n UOffsetT) *StructBuffers
- type StructDef
- type Table
- func (t *Table) ByteVector(off UOffsetT) []byte
- func (t *Table) GetBool(off UOffsetT) bool
- func (t *Table) GetBoolSlot(slot VOffsetT, d bool) bool
- func (t *Table) GetByte(off UOffsetT) byte
- func (t *Table) GetByteSlot(slot VOffsetT, d byte) byte
- func (t *Table) GetFloat32(off UOffsetT) float32
- func (t *Table) GetFloat32Slot(slot VOffsetT, d float32) float32
- func (t *Table) GetFloat64(off UOffsetT) float64
- func (t *Table) GetFloat64Slot(slot VOffsetT, d float64) float64
- func (t *Table) GetInt16(off UOffsetT) int16
- func (t *Table) GetInt16Slot(slot VOffsetT, d int16) int16
- func (t *Table) GetInt32(off UOffsetT) int32
- func (t *Table) GetInt32Slot(slot VOffsetT, d int32) int32
- func (t *Table) GetInt64(off UOffsetT) int64
- func (t *Table) GetInt64Slot(slot VOffsetT, d int64) int64
- func (t *Table) GetInt8(off UOffsetT) int8
- func (t *Table) GetInt8Slot(slot VOffsetT, d int8) int8
- func (t *Table) GetSOffsetT(off UOffsetT) SOffsetT
- func (t *Table) GetUOffsetT(off UOffsetT) UOffsetT
- func (t *Table) GetUint16(off UOffsetT) uint16
- func (t *Table) GetUint16Slot(slot VOffsetT, d uint16) uint16
- func (t *Table) GetUint32(off UOffsetT) uint32
- func (t *Table) GetUint32Slot(slot VOffsetT, d uint32) uint32
- func (t *Table) GetUint64(off UOffsetT) uint64
- func (t *Table) GetUint64Slot(slot VOffsetT, d uint64) uint64
- func (t *Table) GetUint8(off UOffsetT) uint8
- func (t *Table) GetUint8Slot(slot VOffsetT, d uint8) uint8
- func (t *Table) GetVOffsetT(off UOffsetT) VOffsetT
- func (t *Table) GetVOffsetTSlot(slot VOffsetT, d VOffsetT) VOffsetT
- func (t *Table) Indirect(off UOffsetT) UOffsetT
- func (t *Table) MutateBool(off UOffsetT, n bool) bool
- func (t *Table) MutateBoolSlot(slot VOffsetT, n bool) bool
- func (t *Table) MutateByte(off UOffsetT, n byte) bool
- func (t *Table) MutateByteSlot(slot VOffsetT, n byte) bool
- func (t *Table) MutateFloat32(off UOffsetT, n float32) bool
- func (t *Table) MutateFloat32Slot(slot VOffsetT, n float32) bool
- func (t *Table) MutateFloat64(off UOffsetT, n float64) bool
- func (t *Table) MutateFloat64Slot(slot VOffsetT, n float64) bool
- func (t *Table) MutateInt16(off UOffsetT, n int16) bool
- func (t *Table) MutateInt16Slot(slot VOffsetT, n int16) bool
- func (t *Table) MutateInt32(off UOffsetT, n int32) bool
- func (t *Table) MutateInt32Slot(slot VOffsetT, n int32) bool
- func (t *Table) MutateInt64(off UOffsetT, n int64) bool
- func (t *Table) MutateInt64Slot(slot VOffsetT, n int64) bool
- func (t *Table) MutateInt8(off UOffsetT, n int8) bool
- func (t *Table) MutateInt8Slot(slot VOffsetT, n int8) bool
- func (t *Table) MutateSOffsetT(off UOffsetT, n SOffsetT) bool
- func (t *Table) MutateUOffsetT(off UOffsetT, n UOffsetT) bool
- func (t *Table) MutateUint16(off UOffsetT, n uint16) bool
- func (t *Table) MutateUint16Slot(slot VOffsetT, n uint16) bool
- func (t *Table) MutateUint32(off UOffsetT, n uint32) bool
- func (t *Table) MutateUint32Slot(slot VOffsetT, n uint32) bool
- func (t *Table) MutateUint64(off UOffsetT, n uint64) bool
- func (t *Table) MutateUint64Slot(slot VOffsetT, n uint64) bool
- func (t *Table) MutateUint8(off UOffsetT, n uint8) bool
- func (t *Table) MutateUint8Slot(slot VOffsetT, n uint8) bool
- func (t *Table) MutateVOffsetT(off UOffsetT, n VOffsetT) bool
- func (t *Table) Offset(vtableOffset VOffsetT) VOffsetT
- func (t *Table) String(off UOffsetT) string
- func (t *Table) StringsVector(off UOffsetT) []byte
- func (t *Table) Union(t2 *Table, off UOffsetT)
- func (t *Table) Vector(off UOffsetT) UOffsetT
- func (t *Table) VectorLen(off UOffsetT) int
- type TableHeader
- type TypeCode
- type TypeFunction
- type TypeTable
- type UOffsetT
- type Union
- type VField
- type VOffsetT
- type VTable
- type Vector
- func (b *Vector) ByteSize() int
- func (b *Vector) ByteSlice(off VOffsetT, s []byte) VField
- func (b *Vector) EndVector(vectorNumElems int) VField
- func (b *Vector) FinishedBytes() []byte
- func (b *Vector) Int8Slice(off VOffsetT, s []int8) VField
- func (b *Vector) IsFinished() bool
- func (b *Vector) IsVector() bool
- func (b *Vector) ObjectSize() int
- func (b *Vector) Press() error
- func (b *Vector) Release() bool
- func (b *Vector) ScalarArray(off VOffsetT, s ...VField) VField
- func (b *Vector) SharedString(off VOffsetT, s string) VField
- func (b *Vector) String(off VOffsetT, s string) VField
- func (b *Vector) StructArray(off VOffsetT, s ...VField) VField
- func (b *Vector) Type() FieldType
- func (b *Vector) TypeName() string
- func (b *Vector) VectcorArray(off VOffsetT, s ...VField) VField
- type VirtualTable
- func (b *VirtualTable) AllSet() bool
- func (b *VirtualTable) Array(slot int, vf VOffsetT, in VField) *VirtualTable
- func (b *VirtualTable) ByteSize() int
- func (b *VirtualTable) EndTable() *VirtualTable
- func (b *VirtualTable) Finish() VField
- func (b *VirtualTable) FinishedBytes() []byte
- func (b *VirtualTable) FlexTable(slot int, vf VOffsetT, in VField) *VirtualTable
- func (b *VirtualTable) Head() int
- func (b *VirtualTable) Init(minalign, bytesize, slot int) *VirtualTable
- func (b *VirtualTable) IsFinished() bool
- func (b *VirtualTable) IsVector() bool
- func (b *VirtualTable) ObjectSize() int
- func (b *VirtualTable) Press() error
- func (b *VirtualTable) Release() bool
- func (b *VirtualTable) SOffset() int
- func (b *VirtualTable) Scalar(slot int, vf VOffsetT, in, df VField) *VirtualTable
- func (b *VirtualTable) StartTable(i int) *VirtualTable
- func (b *VirtualTable) String(slot int, vf VOffsetT, in, df VField) *VirtualTable
- func (b *VirtualTable) Struct(slot int, vf VOffsetT, in VField) *VirtualTable
- func (b *VirtualTable) Table(slot int, vf VOffsetT, in VField) *VirtualTable
- func (b *VirtualTable) TableSize() int
- func (b *VirtualTable) Type() FieldType
- func (b *VirtualTable) Union(slot int, vf VOffsetT, in VField) *VirtualTable
- func (b *VirtualTable) UnionType(slot int, vf VOffsetT, in, df VField) *VirtualTable
- func (b *VirtualTable) Vector(slot int, vf VOffsetT, in VField) *VirtualTable
Constants ¶
const ( // SizeUint8 is the byte size of a uint8. SizeUint8 = 1 // SizeUint16 is the byte size of a uint16. SizeUint16 = 2 // SizeUint32 is the byte size of a uint32. SizeUint32 = 4 // SizeUint64 is the byte size of a uint64. SizeUint64 = 8 // SizeInt8 is the byte size of a int8. SizeInt8 = 1 // SizeInt16 is the byte size of a int16. SizeInt16 = 2 // SizeInt32 is the byte size of a int32. SizeInt32 = 4 // SizeInt64 is the byte size of a int64. SizeInt64 = 8 // SizeFloat32 is the byte size of a float32. SizeFloat32 = 4 // SizeFloat64 is the byte size of a float64. SizeFloat64 = 8 // SizeByte is the byte size of a byte. // The `byte` type is aliased (by Go definition) to uint8. SizeByte = 1 // SizeBool is the byte size of a bool. // The `bool` type is aliased (by flatbuffers convention) to uint8. SizeBool = 1 // SizeSOffsetT is the byte size of an SOffsetT. // The `SOffsetT` type is aliased (by flatbuffers convention) to int32. SizeSOffsetT = 4 // SizeUOffsetT is the byte size of an UOffsetT. // The `UOffsetT` type is aliased (by flatbuffers convention) to uint32. SizeUOffsetT = 4 // SizeVOffsetT is the byte size of an VOffsetT. // The `VOffsetT` type is aliased (by flatbuffers convention) to uint16. SizeVOffsetT = 2 )
const DefaultMaxBatch = (1 << 8) - 1
default max batch size for batched consumers
const (
// VtableMetadataFields is the count of metadata fields in each VTable.
VtableMetadataFields = 2
)
Variables ¶
var Codec = "flatbuffers"
Codec implements gRPC-go Codec which is used to encode and decode messages.
var EnumNamesFieldType = map[FieldType]string{ FieldTypeNone: "None", FieldTypeUType: "UType", FieldTypeBool: "Bool", FieldTypeInt8: "Int8", FieldTypeUint8: "Uint8", FieldTypeByte: "Byte", FieldTypeInt16: "Int16", FieldTypeUint16: "Uint16", FieldTypeInt32: "Int32", FieldTypeUint32: "Uint32", FieldTypeInt64: "Int64", FieldTypeUint64: "Uint64", FieldTypeFloat32: "Float32", FieldTypeFloat64: "Float64", FieldTypeString: "String", FieldTypeByteSlice: "ByteSlice", FieldTypeInt8Slice: "Int8Slice", FieldTypeVectorPoint: "VectorPoint", FieldTypeScalar: "Scalar", FieldTypeEnum: "Enum", FieldTypeStruct: "Struct", FieldTypeTable: "Table", FieldTypeUnion: "Union", FieldTypeArray: "Array", FieldTypeFlexTable: "FlexTable", FieldTypeCustomized: "Customized", }
var EnumValuesFieldType = map[string]FieldType{ "None": FieldTypeNone, "UType": FieldTypeUType, "Bool": FieldTypeBool, "Int8": FieldTypeInt8, "Uint8": FieldTypeUint8, "Byte": FieldTypeByte, "Int16": FieldTypeInt16, "Uint16": FieldTypeUint16, "Int32": FieldTypeInt32, "Uint32": FieldTypeUint32, "Int64": FieldTypeInt64, "Uint64": FieldTypeUint64, "Float32": FieldTypeFloat32, "Float64": FieldTypeFloat64, "String": FieldTypeString, "ByteSlice": FieldTypeByteSlice, "Int8Slice": FieldTypeInt8Slice, "VectorPoint": FieldTypeVectorPoint, "Scalar": FieldTypeScalar, "Enum": FieldTypeEnum, "Struct": FieldTypeStruct, "Table": FieldTypeTable, "Union": FieldTypeUnion, "Array": FieldTypeArray, "FlexTable": FieldTypeFlexTable, "Customized": FieldTypeCustomized, }
Functions ¶
func B2S ¶
B2S converts byte slice to a string without memory allocation. See https://groups.google.com/forum/#!msg/Golang-Nuts/ENgbUzYvCuU/90yGx7GUAgAJ .
Note it may break if string and/or slice B will change in the future go versions.
func GetFloat32 ¶
GetFloat32 decodes a little-endian float32 from a byte slice.
func GetFloat64 ¶
GetFloat64 decodes a little-endian float64 from a byte slice.
func GetRootAs ¶
func GetRootAs(buf []byte, offset UOffsetT, fb FlatBuffer)
GetRootAs is a generic helper to initialize a FlatBuffer with the provided buffer bytes and its data offset.
func S2B ¶
S2B converts string to a byte slice without memory allocation.
Note it may break if string and/or slice B will change in the future go versions.
func WriteFloat32 ¶
WriteFloat32 encodes a little-endian float32 into a byte slice.
func WriteFloat64 ¶
WriteFloat64 encodes a little-endian float64 into a byte slice.
func WriteInt16 ¶
WriteInt16 encodes a little-endian int16 into a byte slice.
func WriteInt32 ¶
WriteInt32 encodes a little-endian int32 into a byte slice.
func WriteInt64 ¶
WriteInt64 encodes a little-endian int64 into a byte slice.
func WriteSOffsetT ¶
WriteSOffsetT encodes a little-endian SOffsetT into a byte slice.
func WriteUOffsetT ¶
WriteUOffsetT encodes a little-endian UOffsetT into a byte slice.
func WriteUint16 ¶
WriteUint16 encodes a little-endian uint16 into a byte slice.
func WriteUint32 ¶
WriteUint32 encodes a little-endian uint32 into a byte slice.
func WriteUint64 ¶
WriteUint64 encodes a little-endian uint64 into a byte slice.
func WriteUint8 ¶
WriteUint8 encodes a little-endian uint8 into a byte slice.
func WriteVOffsetT ¶
WriteVOffsetT encodes a little-endian VOffsetT into a byte slice.
Types ¶
type Builder ¶
type Builder struct { // `Bytes` gives raw access to the buffer. Most users will want to use // FinishedBytes() instead. Bytes []byte // contains filtered or unexported fields }
Builder is a state machine for creating FlatBuffer objects. Use a Builder to construct object(s) starting from leaf nodes.
A Builder constructs byte buffers in a last-first manner for simplicity and performance.
func NewBuilder ¶
NewBuilder initializes a Builder of size `initial_size`. The internal buffer is grown as needed.
func (*Builder) CreateByteString ¶
CreateByteString writes a byte slice as a string (null-terminated).
func (*Builder) CreateByteVector ¶
CreateByteVector writes a ubyte vector
func (*Builder) CreateSharedString ¶
CreateSharedString Checks if the string is already written to the buffer before calling CreateString
func (*Builder) CreateString ¶
CreateString writes a null-terminated string as a vector.
func (*Builder) FinishWithFileIdentifier ¶
FinishWithFileIdentifier finalizes a buffer, pointing to the given `rootTable`. as well as applys a file identifier
func (*Builder) FinishedBytes ¶
FinishedBytes returns a pointer to the written data in the byte buffer. Panics if the builder is not in a finished state (which is caused by calling `Finish()`).
func (*Builder) Head ¶
Head gives the start of useful data in the underlying byte buffer. Note: unlike other functions, this value is interpreted as from the left.
func (*Builder) PlaceFloat32 ¶
PlaceFloat32 prepends a float32 to the Builder, without checking for space.
func (*Builder) PlaceFloat64 ¶
PlaceFloat64 prepends a float64 to the Builder, without checking for space.
func (*Builder) PlaceInt16 ¶
PlaceInt16 prepends a int16 to the Builder, without checking for space.
func (*Builder) PlaceInt32 ¶
PlaceInt32 prepends a int32 to the Builder, without checking for space.
func (*Builder) PlaceInt64 ¶
PlaceInt64 prepends a int64 to the Builder, without checking for space.
func (*Builder) PlaceSOffsetT ¶
PlaceSOffsetT prepends a SOffsetT to the Builder, without checking for space.
func (*Builder) PlaceUOffsetT ¶
PlaceUOffsetT prepends a UOffsetT to the Builder, without checking for space.
func (*Builder) PlaceUint16 ¶
PlaceUint16 prepends a uint16 to the Builder, without checking for space.
func (*Builder) PlaceUint32 ¶
PlaceUint32 prepends a uint32 to the Builder, without checking for space.
func (*Builder) PlaceUint64 ¶
PlaceUint64 prepends a uint64 to the Builder, without checking for space.
func (*Builder) PlaceUint8 ¶
PlaceUint8 prepends a uint8 to the Builder, without checking for space.
func (*Builder) PlaceVOffsetT ¶
PlaceVOffsetT prepends a VOffsetT to the Builder, without checking for space.
func (*Builder) Prep ¶
Prep prepares to write an element of `size` after `additional_bytes` have been written, e.g. if you write a string, you need to align such the int length field is aligned to SizeInt32, and the string data follows it directly. If all you need to do is align, `additionalBytes` will be 0.
func (*Builder) PrependBool ¶
PrependBool prepends a bool to the Builder buffer. Aligns and checks for space.
func (*Builder) PrependBoolSlot ¶
PrependBoolSlot prepends a bool onto the object at vtable slot `o`. If value `x` equals default `d`, then the slot will be set to zero and no other data will be written.
func (*Builder) PrependByte ¶
PrependByte prepends a byte to the Builder buffer. Aligns and checks for space.
func (*Builder) PrependByteSlot ¶
PrependByteSlot prepends a byte onto the object at vtable slot `o`. If value `x` equals default `d`, then the slot will be set to zero and no other data will be written.
func (*Builder) PrependFloat32 ¶
PrependFloat32 prepends a float32 to the Builder buffer. Aligns and checks for space.
func (*Builder) PrependFloat32Slot ¶
PrependFloat32Slot prepends a float32 onto the object at vtable slot `o`. If value `x` equals default `d`, then the slot will be set to zero and no other data will be written.
func (*Builder) PrependFloat64 ¶
PrependFloat64 prepends a float64 to the Builder buffer. Aligns and checks for space.
func (*Builder) PrependFloat64Slot ¶
PrependFloat64Slot prepends a float64 onto the object at vtable slot `o`. If value `x` equals default `d`, then the slot will be set to zero and no other data will be written.
func (*Builder) PrependInt16 ¶
PrependInt16 prepends a int16 to the Builder buffer. Aligns and checks for space.
func (*Builder) PrependInt16Slot ¶
PrependInt16Slot prepends a int16 onto the object at vtable slot `o`. If value `x` equals default `d`, then the slot will be set to zero and no other data will be written.
func (*Builder) PrependInt32 ¶
PrependInt32 prepends a int32 to the Builder buffer. Aligns and checks for space.
func (*Builder) PrependInt32Slot ¶
PrependInt32Slot prepends a int32 onto the object at vtable slot `o`. If value `x` equals default `d`, then the slot will be set to zero and no other data will be written.
func (*Builder) PrependInt64 ¶
PrependInt64 prepends a int64 to the Builder buffer. Aligns and checks for space.
func (*Builder) PrependInt64Slot ¶
PrependInt64Slot prepends a int64 onto the object at vtable slot `o`. If value `x` equals default `d`, then the slot will be set to zero and no other data will be written.
func (*Builder) PrependInt8 ¶
PrependInt8 prepends a int8 to the Builder buffer. Aligns and checks for space.
func (*Builder) PrependInt8Slot ¶
PrependInt8Slot prepends a int8 onto the object at vtable slot `o`. If value `x` equals default `d`, then the slot will be set to zero and no other data will be written.
func (*Builder) PrependSOffsetT ¶
PrependSOffsetT prepends an SOffsetT, relative to where it will be written.
func (*Builder) PrependStructSlot ¶
PrependStructSlot prepends a struct onto the object at vtable slot `o`. Structs are stored inline, so nothing additional is being added. In generated code, `d` is always 0.
func (*Builder) PrependUOffsetT ¶
PrependUOffsetT prepends an UOffsetT, relative to where it will be written.
func (*Builder) PrependUOffsetTSlot ¶
PrependUOffsetTSlot prepends an UOffsetT onto the object at vtable slot `o`. If value `x` equals default `d`, then the slot will be set to zero and no other data will be written.
func (*Builder) PrependUint16 ¶
PrependUint16 prepends a uint16 to the Builder buffer. Aligns and checks for space.
func (*Builder) PrependUint16Slot ¶
PrependUint16Slot prepends a uint16 onto the object at vtable slot `o`. If value `x` equals default `d`, then the slot will be set to zero and no other data will be written.
func (*Builder) PrependUint32 ¶
PrependUint32 prepends a uint32 to the Builder buffer. Aligns and checks for space.
func (*Builder) PrependUint32Slot ¶
PrependUint32Slot prepends a uint32 onto the object at vtable slot `o`. If value `x` equals default `d`, then the slot will be set to zero and no other data will be written.
func (*Builder) PrependUint64 ¶
PrependUint64 prepends a uint64 to the Builder buffer. Aligns and checks for space.
func (*Builder) PrependUint64Slot ¶
PrependUint64Slot prepends a uint64 onto the object at vtable slot `o`. If value `x` equals default `d`, then the slot will be set to zero and no other data will be written.
func (*Builder) PrependUint8 ¶
PrependUint8 prepends a uint8 to the Builder buffer. Aligns and checks for space.
func (*Builder) PrependUint8Slot ¶
PrependUint8Slot prepends a uint8 onto the object at vtable slot `o`. If value `x` equals default `d`, then the slot will be set to zero and no other data will be written.
func (*Builder) PrependVOffsetT ¶
PrependVOffsetT prepends a VOffsetT to the Builder buffer. Aligns and checks for space.
func (*Builder) Reset ¶
func (b *Builder) Reset()
Reset truncates the underlying Builder buffer, facilitating alloc-free reuse of a Builder. It also resets bookkeeping data.
func (*Builder) StartObject ¶
StartObject initializes bookkeeping for writing a new object.
func (*Builder) StartVector ¶
StartVector initializes bookkeeping for writing a new vector.
A vector has the following format:
<UOffsetT: number of elements in this vector> <T: data>+, where T is the type of elements of this vector.
func (*Builder) StringsVector ¶
StringsVector a shortcut to pack []string
func (*Builder) VectorArray ¶
VectorArray shortcut for vector array ( UOffset array ) like strings / tables / unions
func (*Builder) WriteVtable ¶
WriteVtable serializes the vtable for the current object, if applicable.
Before writing out the vtable, this checks pre-existing vtables for equality to this one. If an equal vtable is found, point the object to the existing vtable and return.
Because vtable values are sensitive to alignment of object data, not all logically-equal vtables will be deduplicated.
A vtable has the following format:
<VOffsetT: size of the vtable in bytes, including this value> <VOffsetT: size of the object in bytes, including the vtable offset> <VOffsetT: offset for a field> * N, where N is the number of fields in the schema for this type. Includes deprecated fields.
Thus, a vtable is made of 2 + N elements, each SizeVOffsetT bytes wide.
An object has the following format:
<SOffsetT: offset to this object's vtable (may be negative)> <byte: data>+
type FieldRegister ¶
type FieldRegister struct {
// contains filtered or unexported fields
}
Stack single publish, single consume
func (*FieldRegister) Len ¶
func (r *FieldRegister) Len() int
func (*FieldRegister) Pop ¶
func (r *FieldRegister) Pop() (v VField, b bool)
Get check item iextis or net
func (*FieldRegister) PushAt ¶
func (r *FieldRegister) PushAt(off int, v VField)
Put put item into queue
func (*FieldRegister) Size ¶
func (r *FieldRegister) Size() int
type FieldType ¶
type FieldType int8
const ( FieldTypeNone FieldType = 0 FieldTypeUType FieldType = 1 FieldTypeBool FieldType = 2 FieldTypeInt8 FieldType = 3 FieldTypeUint8 FieldType = 4 FieldTypeByte FieldType = 5 FieldTypeInt16 FieldType = 6 FieldTypeUint16 FieldType = 7 FieldTypeInt32 FieldType = 8 FieldTypeUint32 FieldType = 9 FieldTypeInt64 FieldType = 10 FieldTypeUint64 FieldType = 11 FieldTypeFloat32 FieldType = 12 FieldTypeFloat64 FieldType = 13 FieldTypeString FieldType = 14 FieldTypeByteSlice FieldType = 15 FieldTypeInt8Slice FieldType = 16 FieldTypeVectorPoint FieldType = 17 FieldTypeScalar FieldType = 18 FieldTypeEnum FieldType = 19 FieldTypeStruct FieldType = 20 FieldTypeTable FieldType = 21 FieldTypeUnion FieldType = 22 FieldTypeArray FieldType = 23 FieldTypeFlexTable FieldType = 24 FieldTypeCustomized FieldType = 25 )
type FlatBuffer ¶
FlatBuffer is the interface that represents a flatbuffer.
type FlatBuilder ¶
type FlatBuilder struct { VirtualTable // contains filtered or unexported fields }
FlatBuilder flatbuffers builder
type FlatbuffersCodec ¶
type FlatbuffersCodec struct{}
FlatbuffersCodec defines the interface gRPC uses to encode and decode messages. Note that implementations of this interface must be thread safe; a Codec's methods can be called from concurrent goroutines.
func (FlatbuffersCodec) Marshal ¶
func (FlatbuffersCodec) Marshal(v interface{}) ([]byte, error)
Marshal returns the wire format of v.
func (FlatbuffersCodec) Name ¶
func (FlatbuffersCodec) Name() string
Name returns the name of the Codec implementation. The returned string will be used as part of content type in transmission. The result must be static; the result cannot change between calls.
add Name() for ForceCodec interface
func (FlatbuffersCodec) String ¶
func (FlatbuffersCodec) String() string
String old gRPC Codec interface func
func (FlatbuffersCodec) Unmarshal ¶
func (FlatbuffersCodec) Unmarshal(data []byte, v interface{}) error
Unmarshal parses the wire format into v.
type Header ¶
type Header struct {
// contains filtered or unexported fields
}
Header root B
func (*Header) SetIdentifier ¶
type Queue ¶
type Queue interface { Pop() (VField, bool) Size() int Len() int NumsElement() int Push(VField) Close() }
Generic queue interfacelist mathing all implementations
type SOffsetT ¶
type SOffsetT int32
A SOffsetT stores a signed offset into arbitrary data.
func GetSOffsetT ¶
GetSOffsetT decodes a little-endian SOffsetT from a byte slice.
type Scalar ¶
type Scalar struct { FieldName string // field name for json object, come from flatc compiler VOffset VOffsetT // for scalar vec only, vec's scalar field VOffset be pre-defined in flatc compiler // contains filtered or unexported fields }
Scalar vec for scalar in flatc
func (*Scalar) ObjectSize ¶
ObjectSize return scalar encoded binary size
type Stack ¶
type Stack struct {
// contains filtered or unexported fields
}
Stack single publish, single consume
func (*Stack) NumsElement ¶
type Struct ¶
type Struct struct {
Table
}
Struct wraps a byte slice and provides read access to its data.
Structs do not have a VTable.
type StructBuffers ¶
type StructBuffers struct {
// contains filtered or unexported fields
}
StructBuffers scalar vec
func NewFixedStruct ¶
func NewFixedStruct(bytesize int) *StructBuffers
func (*StructBuffers) Bool ¶
func (b *StructBuffers) Bool(x bool, n UOffsetT) *StructBuffers
Bool insert a field into vec
func (*StructBuffers) Byte ¶
func (b *StructBuffers) Byte(x byte, n UOffsetT) *StructBuffers
Int8 insert a field into vec
func (*StructBuffers) FinishedBytes ¶
func (b *StructBuffers) FinishedBytes() []byte
FinishedBytes return []byte
func (*StructBuffers) Float32 ¶
func (b *StructBuffers) Float32(x float32, n UOffsetT) *StructBuffers
Float32 insert a field into vec
func (*StructBuffers) Float64 ¶
func (b *StructBuffers) Float64(x float64, n UOffsetT) *StructBuffers
Float64 insert a field into vec
func (*StructBuffers) Int16 ¶
func (b *StructBuffers) Int16(x int16, n UOffsetT) *StructBuffers
Int16 insert a field into vec
func (*StructBuffers) Int32 ¶
func (b *StructBuffers) Int32(x int32, n UOffsetT) *StructBuffers
Int32 insert a field into vec
func (*StructBuffers) Int64 ¶
func (b *StructBuffers) Int64(x int64, n UOffsetT) *StructBuffers
Int64 insert a field into vec
func (*StructBuffers) Int8 ¶
func (b *StructBuffers) Int8(x int8, n UOffsetT) *StructBuffers
Int8 insert a field into vec
func (*StructBuffers) IsFinished ¶
func (b *StructBuffers) IsFinished() bool
Finished return serialize result
func (*StructBuffers) Pad ¶
func (b *StructBuffers) Pad(n int, u UOffsetT) *StructBuffers
Pad filled the pad via "0" byte
func (*StructBuffers) Prep ¶
func (b *StructBuffers) Prep(minalign, bytesize int) *StructBuffers
Init initial scalar vec
func (*StructBuffers) Press ¶
func (b *StructBuffers) Press() error
func (*StructBuffers) StructEnd ¶
func (b *StructBuffers) StructEnd() *StructBuffers
StructEnd finish scalar vec
func (*StructBuffers) StructStart ¶
func (b *StructBuffers) StructStart(minalign, bytesize, slot int) *StructBuffers
Init initial scalar vec
func (*StructBuffers) Uint16 ¶
func (b *StructBuffers) Uint16(x uint16, n UOffsetT) *StructBuffers
Uint16 insert a field into vec
func (*StructBuffers) Uint32 ¶
func (b *StructBuffers) Uint32(x uint32, n UOffsetT) *StructBuffers
Uint32 insert a field into vec
func (*StructBuffers) Uint64 ¶
func (b *StructBuffers) Uint64(x uint64, n UOffsetT) *StructBuffers
Uint64 insert a field into vec
func (*StructBuffers) Uint8 ¶
func (b *StructBuffers) Uint8(x uint8, n UOffsetT) *StructBuffers
Uint8 insert a field into vec
type Table ¶
Table wraps a byte slice and provides read access to its data.
The variable `Pos` indicates the root of the FlatBuffers object therein.
func (*Table) ByteVector ¶
ByteVector gets a byte slice from data stored inside the flatbuffer.
func (*Table) GetBoolSlot ¶
GetBoolSlot retrieves the bool that the given vtable location points to. If the vtable value is zero, the default value `d` will be returned.
func (*Table) GetByteSlot ¶
GetByteSlot retrieves the byte that the given vtable location points to. If the vtable value is zero, the default value `d` will be returned.
func (*Table) GetFloat32 ¶
GetFloat32 retrieves a float32 at the given offset.
func (*Table) GetFloat32Slot ¶
GetFloat32Slot retrieves the float32 that the given vtable location points to. If the vtable value is zero, the default value `d` will be returned.
func (*Table) GetFloat64 ¶
GetFloat64 retrieves a float64 at the given offset.
func (*Table) GetFloat64Slot ¶
GetFloat64Slot retrieves the float64 that the given vtable location points to. If the vtable value is zero, the default value `d` will be returned.
func (*Table) GetInt16Slot ¶
GetInt16Slot retrieves the int16 that the given vtable location points to. If the vtable value is zero, the default value `d` will be returned.
func (*Table) GetInt32Slot ¶
GetInt32Slot retrieves the int32 that the given vtable location points to. If the vtable value is zero, the default value `d` will be returned.
func (*Table) GetInt64Slot ¶
GetInt64Slot retrieves the int64 that the given vtable location points to. If the vtable value is zero, the default value `d` will be returned.
func (*Table) GetInt8Slot ¶
GetInt8Slot retrieves the int8 that the given vtable location points to. If the vtable value is zero, the default value `d` will be returned.
func (*Table) GetSOffsetT ¶
GetSOffsetT retrieves a SOffsetT at the given offset.
func (*Table) GetUOffsetT ¶
GetUOffsetT retrieves a UOffsetT at the given offset.
func (*Table) GetUint16Slot ¶
GetUint16Slot retrieves the uint16 that the given vtable location points to. If the vtable value is zero, the default value `d` will be returned.
func (*Table) GetUint32Slot ¶
GetUint32Slot retrieves the uint32 that the given vtable location points to. If the vtable value is zero, the default value `d` will be returned.
func (*Table) GetUint64Slot ¶
GetUint64Slot retrieves the uint64 that the given vtable location points to. If the vtable value is zero, the default value `d` will be returned.
func (*Table) GetUint8Slot ¶
GetUint8Slot retrieves the uint8 that the given vtable location points to. If the vtable value is zero, the default value `d` will be returned.
func (*Table) GetVOffsetT ¶
GetVOffsetT retrieves a VOffsetT at the given offset.
func (*Table) GetVOffsetTSlot ¶
GetVOffsetTSlot retrieves the VOffsetT that the given vtable location points to. If the vtable value is zero, the default value `d` will be returned.
func (*Table) MutateBool ¶
MutateBool updates a bool at the given offset.
func (*Table) MutateBoolSlot ¶
MutateBoolSlot updates the bool at given vtable location
func (*Table) MutateByte ¶
MutateByte updates a Byte at the given offset.
func (*Table) MutateByteSlot ¶
MutateByteSlot updates the byte at given vtable location
func (*Table) MutateFloat32 ¶
MutateFloat32 updates a Float32 at the given offset.
func (*Table) MutateFloat32Slot ¶
MutateFloat32Slot updates the float32 at given vtable location
func (*Table) MutateFloat64 ¶
MutateFloat64 updates a Float64 at the given offset.
func (*Table) MutateFloat64Slot ¶
MutateFloat64Slot updates the float64 at given vtable location
func (*Table) MutateInt16 ¶
MutateInt16 updates a Int16 at the given offset.
func (*Table) MutateInt16Slot ¶
MutateInt16Slot updates the int16 at given vtable location
func (*Table) MutateInt32 ¶
MutateInt32 updates a Int32 at the given offset.
func (*Table) MutateInt32Slot ¶
MutateInt32Slot updates the int32 at given vtable location
func (*Table) MutateInt64 ¶
MutateInt64 updates a Int64 at the given offset.
func (*Table) MutateInt64Slot ¶
MutateInt64Slot updates the int64 at given vtable location
func (*Table) MutateInt8 ¶
MutateInt8 updates a Int8 at the given offset.
func (*Table) MutateInt8Slot ¶
MutateInt8Slot updates the int8 at given vtable location
func (*Table) MutateSOffsetT ¶
MutateSOffsetT updates a SOffsetT at the given offset.
func (*Table) MutateUOffsetT ¶
MutateUOffsetT updates a UOffsetT at the given offset.
func (*Table) MutateUint16 ¶
MutateUint16 updates a Uint16 at the given offset.
func (*Table) MutateUint16Slot ¶
MutateUint16Slot updates the uint16 at given vtable location
func (*Table) MutateUint32 ¶
MutateUint32 updates a Uint32 at the given offset.
func (*Table) MutateUint32Slot ¶
MutateUint32Slot updates the uint32 at given vtable location
func (*Table) MutateUint64 ¶
MutateUint64 updates a Uint64 at the given offset.
func (*Table) MutateUint64Slot ¶
MutateUint64Slot updates the uint64 at given vtable location
func (*Table) MutateUint8 ¶
MutateUint8 updates a Uint8 at the given offset.
func (*Table) MutateUint8Slot ¶
MutateUint8Slot updates the uint8 at given vtable location
func (*Table) MutateVOffsetT ¶
MutateVOffsetT updates a VOffsetT at the given offset.
func (*Table) Offset ¶
Offset provides access into the Table's vtable.
Fields which are deprecated are ignored by checking against the vtable's length.
func (*Table) StringsVector ¶
ByteInUnion gets a byte slice from data stored inside the union.
func (*Table) Union ¶
Union initializes any Table-derived type to point to the union at the given offset.
type TableHeader ¶
TableHeader define table header
type TypeCode ¶
type TypeCode struct { Id uint16 Offset uint16 Name string BaseType FieldType FieldType FieldType DefaultInteger int64 DefaultReal float64 Element FieldType Index int32 FixedLength uint16 IsVector bool // set true if vector field IsDeprecated bool // set true if deprecated field SequenceRef TypeTable }
TypeCode define type code for scalar / enum in IDL
type TypeTable ¶
type TypeTable struct { SequenceType FieldType IsRootType bool // set true if set root_type Minalign int32 Bytesize int32 NumsElement int // how many field inside FixedLength int // default is 0, set if fixed size like struct Name []byte RootType []byte // root_type name Identifier []byte // set if root table with file_identifier Fields []TypeCode }
TypeTable define type table, for enum / struct / union / table in IDL SequenceType : table / struct / union / enum , only 4 type in SequenceType
type UOffsetT ¶
type UOffsetT uint32
A UOffsetT stores an unsigned offset into vector data.
func GetUOffsetT ¶
GetUOffsetT decodes a little-endian UOffsetT from a byte slice.
type VField ¶
type VField interface { IsVector() bool // is vector or not IsFinished() bool // check is serialize operation done or not FinishedBytes() []byte Release() bool ByteSize() int ObjectSize() int Type() FieldType // scalar / union / vector Press() error // worker for goroutine }
VField field of VTable
type VOffsetT ¶
type VOffsetT uint16
A VOffsetT stores an unsigned offset in a VTable.
func GetVOffsetT ¶
GetVOffsetT decodes a little-endian VOffsetT from a byte slice.
type VTable ¶
type VTable struct {
// contains filtered or unexported fields
}
VTable virtual table
func (*VTable) SetObjectSize ¶
SetObjectSize set object size
type Vector ¶
type Vector struct { FieldName string // field name for json object, come from flatc compiler VOffset VOffsetT // for scalar vec only, vec's scalar field VOffset be pre-defined in flatc compiler // contains filtered or unexported fields }
IsVector vector vec
func (*Vector) FinishedBytes ¶
FinishedBytes finish serialize and return []byte
func (*Vector) ObjectSize ¶
func (*Vector) ScalarArray ¶
ScalarArray add a string vector
func (*Vector) SharedString ¶
SharedString add a shared string vector
func (*Vector) StructArray ¶
StructArray add a string vector
type VirtualTable ¶
type VirtualTable struct {
// contains filtered or unexported fields
}
VirtualTable virtual table
func (*VirtualTable) AllSet ¶
func (b *VirtualTable) AllSet() bool
AllSet check all field been registered or not
func (*VirtualTable) Array ¶
func (b *VirtualTable) Array(slot int, vf VOffsetT, in VField) *VirtualTable
Array register array
func (*VirtualTable) ByteSize ¶
func (b *VirtualTable) ByteSize() int
ByteSize size of serialized binary slice
func (*VirtualTable) FinishedBytes ¶
func (b *VirtualTable) FinishedBytes() []byte
FinishedBytes return []byte
func (*VirtualTable) FlexTable ¶
func (b *VirtualTable) FlexTable(slot int, vf VOffsetT, in VField) *VirtualTable
FlexTable register flex table
func (*VirtualTable) Init ¶
func (b *VirtualTable) Init(minalign, bytesize, slot int) *VirtualTable
func (*VirtualTable) IsFinished ¶
func (b *VirtualTable) IsFinished() bool
IsFinished check serialize job done or not
func (*VirtualTable) IsVector ¶
func (b *VirtualTable) IsVector() bool
IsVector check this VField is vector or not
func (*VirtualTable) ObjectSize ¶
func (b *VirtualTable) ObjectSize() int
ObjectSize object size in VTable
func (*VirtualTable) Scalar ¶
func (b *VirtualTable) Scalar(slot int, vf VOffsetT, in, df VField) *VirtualTable
Scalar register scalar
func (*VirtualTable) StartTable ¶
func (b *VirtualTable) StartTable(i int) *VirtualTable
StartTable start table
func (*VirtualTable) String ¶
func (b *VirtualTable) String(slot int, vf VOffsetT, in, df VField) *VirtualTable
String register string
func (*VirtualTable) Struct ¶
func (b *VirtualTable) Struct(slot int, vf VOffsetT, in VField) *VirtualTable
Struct register string
func (*VirtualTable) Table ¶
func (b *VirtualTable) Table(slot int, vf VOffsetT, in VField) *VirtualTable
Table register table
func (*VirtualTable) Union ¶
func (b *VirtualTable) Union(slot int, vf VOffsetT, in VField) *VirtualTable
Union register table
func (*VirtualTable) UnionType ¶
func (b *VirtualTable) UnionType(slot int, vf VOffsetT, in, df VField) *VirtualTable
UnionType register table // scalar.byte
func (*VirtualTable) Vector ¶
func (b *VirtualTable) Vector(slot int, vf VOffsetT, in VField) *VirtualTable
Vector register vector
Source Files ¶
- FieldType.go
- builder.go
- doc.go
- encode.go
- fielddef.go
- flatbuilder.go
- grpc.go
- header.go
- helper.go
- interface.go
- lib.go
- nocopy.go
- prepad.go
- register.go
- scalar.go
- sizes.go
- stack.go
- strings.go
- struct.go
- structbuffers.go
- table.go
- typeTable.go
- union.go
- vector.go
- vectorArray.go
- virtualTable.go
- vtable.go
- vtableheader.go
Directories ¶
Path | Synopsis |
---|---|
code copy from github.com/libp2p/go-buffer-pool, copyright belong to The Go Authors and Steven Allen.
|
code copy from github.com/libp2p/go-buffer-pool, copyright belong to The Go Authors and Steven Allen. |
extras
|
|