package
25.2.10+incompatible
Repository: https://github.com/google/flatbuffers.git
Documentation: pkg.go.dev
# Functions
BufferHasIdentifier checks if the identifier in a buffer has the expected value.
GetBool decodes a little-endian bool from a byte slice.
GetBufferIdentifier returns the file identifier as string.
GetByte decodes a little-endian byte from a byte slice.
GetFloat32 decodes a little-endian float32 from a byte slice.
GetFloat64 decodes a little-endian float64 from a byte slice.
GetIndirectOffset retrives the relative offset in the provided buffer stored at `offset`.
GetInt16 decodes a little-endian int16 from a byte slice.
GetInt32 decodes a little-endian int32 from a byte slice.
GetInt64 decodes a little-endian int64 from a byte slice.
GetInt8 decodes a little-endian int8 from a byte slice.
GetRootAs is a generic helper to initialize a FlatBuffer with the provided buffer bytes and its data offset.
GetSizePrefix reads the size from a size-prefixed flatbuffer.
GetBufferIdentifier returns the file identifier as string for a size-prefixed buffer.
GetSizePrefixedRootAs is a generic helper to initialize a FlatBuffer with the provided size-prefixed buffer bytes and its data offset.
GetSOffsetT decodes a little-endian SOffsetT from a byte slice.
GetUint16 decodes a little-endian uint16 from a byte slice.
GetUint32 decodes a little-endian uint32 from a byte slice.
GetUint64 decodes a little-endian uint64 from a byte slice.
GetUint8 decodes a little-endian uint8 from a byte slice.
GetUOffsetT decodes a little-endian UOffsetT from a byte slice.
GetVOffsetT decodes a little-endian VOffsetT from a byte slice.
NewBuilder initializes a Builder of size `initial_size`.
BufferHasIdentifier checks if the identifier in a buffer has the expected value for a size-prefixed buffer.
WriteBool encodes a little-endian bool into a byte slice.
WriteByte encodes a little-endian uint8 into a byte slice.
WriteFloat32 encodes a little-endian float32 into a byte slice.
WriteFloat64 encodes a little-endian float64 into a byte slice.
WriteInt16 encodes a little-endian int16 into a byte slice.
WriteInt32 encodes a little-endian int32 into a byte slice.
WriteInt64 encodes a little-endian int64 into a byte slice.
WriteInt8 encodes a little-endian int8 into a byte slice.
WriteSOffsetT encodes a little-endian SOffsetT into a byte slice.
WriteUint16 encodes a little-endian uint16 into a byte slice.
WriteUint32 encodes a little-endian uint32 into a byte slice.
WriteUint64 encodes a little-endian uint64 into a byte slice.
WriteUint8 encodes a little-endian uint8 into a byte slice.
WriteUOffsetT encodes a little-endian UOffsetT into a byte slice.
WriteVOffsetT encodes a little-endian VOffsetT into a byte slice.
# Constants
SizeBool is the byte size of a bool.
SizeByte is the byte size of a byte.
SizeFloat32 is the byte size of a float32.
SizeFloat64 is the byte size of a float64.
SizeInt16 is the byte size of a int16.
SizeInt32 is the byte size of a int32.
SizeInt64 is the byte size of a int64.
SizeInt8 is the byte size of a int8.
SizeSOffsetT is the byte size of an SOffsetT.
SizeUint16 is the byte size of a uint16.
SizeUint32 is the byte size of a uint32.
SizeUint64 is the byte size of a uint64.
SizeUint8 is the byte size of a uint8.
SizeUOffsetT is the byte size of an UOffsetT.
SizeVOffsetT is the byte size of an VOffsetT.
VtableMetadataFields is the count of metadata fields in each vtable.
# Variables
Codec implements gRPC-go Codec which is used to encode and decode messages.
# Structs
Builder is a state machine for creating FlatBuffer objects.
FlatbuffersCodec defines the interface gRPC uses to encode and decode messages.
Struct wraps a byte slice and provides read access to its data.
Table wraps a byte slice and provides read access to its data.
# Interfaces
FlatBuffer is the interface that represents a flatbuffer.