optional_scalars

package
v24.3.6+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnumNamesOptionalByte = map[OptionalByte]string{
	OptionalByteNone: "None",
	OptionalByteOne:  "One",
	OptionalByteTwo:  "Two",
}
View Source
var EnumValuesOptionalByte = map[string]OptionalByte{
	"None": OptionalByteNone,
	"One":  OptionalByteOne,
	"Two":  OptionalByteTwo,
}

Functions

func ScalarStuffAddDefaultBool

func ScalarStuffAddDefaultBool(builder *flatbuffers.Builder, defaultBool bool)

func ScalarStuffAddDefaultEnum

func ScalarStuffAddDefaultEnum(builder *flatbuffers.Builder, defaultEnum OptionalByte)

func ScalarStuffAddDefaultF32

func ScalarStuffAddDefaultF32(builder *flatbuffers.Builder, defaultF32 float32)

func ScalarStuffAddDefaultF64

func ScalarStuffAddDefaultF64(builder *flatbuffers.Builder, defaultF64 float64)

func ScalarStuffAddDefaultI16

func ScalarStuffAddDefaultI16(builder *flatbuffers.Builder, defaultI16 int16)

func ScalarStuffAddDefaultI32

func ScalarStuffAddDefaultI32(builder *flatbuffers.Builder, defaultI32 int32)

func ScalarStuffAddDefaultI64

func ScalarStuffAddDefaultI64(builder *flatbuffers.Builder, defaultI64 int64)

func ScalarStuffAddDefaultI8

func ScalarStuffAddDefaultI8(builder *flatbuffers.Builder, defaultI8 int8)

func ScalarStuffAddDefaultU16

func ScalarStuffAddDefaultU16(builder *flatbuffers.Builder, defaultU16 uint16)

func ScalarStuffAddDefaultU32

func ScalarStuffAddDefaultU32(builder *flatbuffers.Builder, defaultU32 uint32)

func ScalarStuffAddDefaultU64

func ScalarStuffAddDefaultU64(builder *flatbuffers.Builder, defaultU64 uint64)

func ScalarStuffAddDefaultU8

func ScalarStuffAddDefaultU8(builder *flatbuffers.Builder, defaultU8 byte)

func ScalarStuffAddJustBool

func ScalarStuffAddJustBool(builder *flatbuffers.Builder, justBool bool)

func ScalarStuffAddJustEnum

func ScalarStuffAddJustEnum(builder *flatbuffers.Builder, justEnum OptionalByte)

func ScalarStuffAddJustF32

func ScalarStuffAddJustF32(builder *flatbuffers.Builder, justF32 float32)

func ScalarStuffAddJustF64

func ScalarStuffAddJustF64(builder *flatbuffers.Builder, justF64 float64)

func ScalarStuffAddJustI16

func ScalarStuffAddJustI16(builder *flatbuffers.Builder, justI16 int16)

func ScalarStuffAddJustI32

func ScalarStuffAddJustI32(builder *flatbuffers.Builder, justI32 int32)

func ScalarStuffAddJustI64

func ScalarStuffAddJustI64(builder *flatbuffers.Builder, justI64 int64)

func ScalarStuffAddJustI8

func ScalarStuffAddJustI8(builder *flatbuffers.Builder, justI8 int8)

func ScalarStuffAddJustU16

func ScalarStuffAddJustU16(builder *flatbuffers.Builder, justU16 uint16)

func ScalarStuffAddJustU32

func ScalarStuffAddJustU32(builder *flatbuffers.Builder, justU32 uint32)

func ScalarStuffAddJustU64

func ScalarStuffAddJustU64(builder *flatbuffers.Builder, justU64 uint64)

func ScalarStuffAddJustU8

func ScalarStuffAddJustU8(builder *flatbuffers.Builder, justU8 byte)

func ScalarStuffAddMaybeBool

func ScalarStuffAddMaybeBool(builder *flatbuffers.Builder, maybeBool bool)

func ScalarStuffAddMaybeEnum

func ScalarStuffAddMaybeEnum(builder *flatbuffers.Builder, maybeEnum OptionalByte)

func ScalarStuffAddMaybeF32

func ScalarStuffAddMaybeF32(builder *flatbuffers.Builder, maybeF32 float32)

func ScalarStuffAddMaybeF64

func ScalarStuffAddMaybeF64(builder *flatbuffers.Builder, maybeF64 float64)

func ScalarStuffAddMaybeI16

func ScalarStuffAddMaybeI16(builder *flatbuffers.Builder, maybeI16 int16)

func ScalarStuffAddMaybeI32

func ScalarStuffAddMaybeI32(builder *flatbuffers.Builder, maybeI32 int32)

func ScalarStuffAddMaybeI64

func ScalarStuffAddMaybeI64(builder *flatbuffers.Builder, maybeI64 int64)

func ScalarStuffAddMaybeI8

func ScalarStuffAddMaybeI8(builder *flatbuffers.Builder, maybeI8 int8)

func ScalarStuffAddMaybeU16

func ScalarStuffAddMaybeU16(builder *flatbuffers.Builder, maybeU16 uint16)

func ScalarStuffAddMaybeU32

func ScalarStuffAddMaybeU32(builder *flatbuffers.Builder, maybeU32 uint32)

func ScalarStuffAddMaybeU64

func ScalarStuffAddMaybeU64(builder *flatbuffers.Builder, maybeU64 uint64)

func ScalarStuffAddMaybeU8

func ScalarStuffAddMaybeU8(builder *flatbuffers.Builder, maybeU8 byte)

func ScalarStuffEnd

func ScalarStuffEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func ScalarStuffStart

func ScalarStuffStart(builder *flatbuffers.Builder)

Types

type OptionalByte

type OptionalByte int8
const (
	OptionalByteNone OptionalByte = 0
	OptionalByteOne  OptionalByte = 1
	OptionalByteTwo  OptionalByte = 2
)

func (OptionalByte) String

func (v OptionalByte) String() string

type ScalarStuff

type ScalarStuff struct {
	// contains filtered or unexported fields
}

func GetRootAsScalarStuff

func GetRootAsScalarStuff(buf []byte, offset flatbuffers.UOffsetT) *ScalarStuff

func GetSizePrefixedRootAsScalarStuff

func GetSizePrefixedRootAsScalarStuff(buf []byte, offset flatbuffers.UOffsetT) *ScalarStuff

func (*ScalarStuff) DefaultBool

func (rcv *ScalarStuff) DefaultBool() bool

func (*ScalarStuff) DefaultEnum

func (rcv *ScalarStuff) DefaultEnum() OptionalByte

func (*ScalarStuff) DefaultF32

func (rcv *ScalarStuff) DefaultF32() float32

func (*ScalarStuff) DefaultF64

func (rcv *ScalarStuff) DefaultF64() float64

func (*ScalarStuff) DefaultI16

func (rcv *ScalarStuff) DefaultI16() int16

func (*ScalarStuff) DefaultI32

func (rcv *ScalarStuff) DefaultI32() int32

func (*ScalarStuff) DefaultI64

func (rcv *ScalarStuff) DefaultI64() int64

func (*ScalarStuff) DefaultI8

func (rcv *ScalarStuff) DefaultI8() int8

func (*ScalarStuff) DefaultU16

func (rcv *ScalarStuff) DefaultU16() uint16

func (*ScalarStuff) DefaultU32

func (rcv *ScalarStuff) DefaultU32() uint32

func (*ScalarStuff) DefaultU64

func (rcv *ScalarStuff) DefaultU64() uint64

func (*ScalarStuff) DefaultU8

func (rcv *ScalarStuff) DefaultU8() byte

func (*ScalarStuff) Init

func (rcv *ScalarStuff) Init(buf []byte, i flatbuffers.UOffsetT)

func (*ScalarStuff) JustBool

func (rcv *ScalarStuff) JustBool() bool

func (*ScalarStuff) JustEnum

func (rcv *ScalarStuff) JustEnum() OptionalByte

func (*ScalarStuff) JustF32

func (rcv *ScalarStuff) JustF32() float32

func (*ScalarStuff) JustF64

func (rcv *ScalarStuff) JustF64() float64

func (*ScalarStuff) JustI16

func (rcv *ScalarStuff) JustI16() int16

func (*ScalarStuff) JustI32

func (rcv *ScalarStuff) JustI32() int32

func (*ScalarStuff) JustI64

func (rcv *ScalarStuff) JustI64() int64

func (*ScalarStuff) JustI8

func (rcv *ScalarStuff) JustI8() int8

func (*ScalarStuff) JustU16

func (rcv *ScalarStuff) JustU16() uint16

func (*ScalarStuff) JustU32

func (rcv *ScalarStuff) JustU32() uint32

func (*ScalarStuff) JustU64

func (rcv *ScalarStuff) JustU64() uint64

func (*ScalarStuff) JustU8

func (rcv *ScalarStuff) JustU8() byte

func (*ScalarStuff) MaybeBool

func (rcv *ScalarStuff) MaybeBool() *bool

func (*ScalarStuff) MaybeEnum

func (rcv *ScalarStuff) MaybeEnum() *OptionalByte

func (*ScalarStuff) MaybeF32

func (rcv *ScalarStuff) MaybeF32() *float32

func (*ScalarStuff) MaybeF64

func (rcv *ScalarStuff) MaybeF64() *float64

func (*ScalarStuff) MaybeI16

func (rcv *ScalarStuff) MaybeI16() *int16

func (*ScalarStuff) MaybeI32

func (rcv *ScalarStuff) MaybeI32() *int32

func (*ScalarStuff) MaybeI64

func (rcv *ScalarStuff) MaybeI64() *int64

func (*ScalarStuff) MaybeI8

func (rcv *ScalarStuff) MaybeI8() *int8

func (*ScalarStuff) MaybeU16

func (rcv *ScalarStuff) MaybeU16() *uint16

func (*ScalarStuff) MaybeU32

func (rcv *ScalarStuff) MaybeU32() *uint32

func (*ScalarStuff) MaybeU64

func (rcv *ScalarStuff) MaybeU64() *uint64

func (*ScalarStuff) MaybeU8

func (rcv *ScalarStuff) MaybeU8() *byte

func (*ScalarStuff) MutateDefaultBool

func (rcv *ScalarStuff) MutateDefaultBool(n bool) bool

func (*ScalarStuff) MutateDefaultEnum

func (rcv *ScalarStuff) MutateDefaultEnum(n OptionalByte) bool

func (*ScalarStuff) MutateDefaultF32

func (rcv *ScalarStuff) MutateDefaultF32(n float32) bool

func (*ScalarStuff) MutateDefaultF64

func (rcv *ScalarStuff) MutateDefaultF64(n float64) bool

func (*ScalarStuff) MutateDefaultI16

func (rcv *ScalarStuff) MutateDefaultI16(n int16) bool

func (*ScalarStuff) MutateDefaultI32

func (rcv *ScalarStuff) MutateDefaultI32(n int32) bool

func (*ScalarStuff) MutateDefaultI64

func (rcv *ScalarStuff) MutateDefaultI64(n int64) bool

func (*ScalarStuff) MutateDefaultI8

func (rcv *ScalarStuff) MutateDefaultI8(n int8) bool

func (*ScalarStuff) MutateDefaultU16

func (rcv *ScalarStuff) MutateDefaultU16(n uint16) bool

func (*ScalarStuff) MutateDefaultU32

func (rcv *ScalarStuff) MutateDefaultU32(n uint32) bool

func (*ScalarStuff) MutateDefaultU64

func (rcv *ScalarStuff) MutateDefaultU64(n uint64) bool

func (*ScalarStuff) MutateDefaultU8

func (rcv *ScalarStuff) MutateDefaultU8(n byte) bool

func (*ScalarStuff) MutateJustBool

func (rcv *ScalarStuff) MutateJustBool(n bool) bool

func (*ScalarStuff) MutateJustEnum

func (rcv *ScalarStuff) MutateJustEnum(n OptionalByte) bool

func (*ScalarStuff) MutateJustF32

func (rcv *ScalarStuff) MutateJustF32(n float32) bool

func (*ScalarStuff) MutateJustF64

func (rcv *ScalarStuff) MutateJustF64(n float64) bool

func (*ScalarStuff) MutateJustI16

func (rcv *ScalarStuff) MutateJustI16(n int16) bool

func (*ScalarStuff) MutateJustI32

func (rcv *ScalarStuff) MutateJustI32(n int32) bool

func (*ScalarStuff) MutateJustI64

func (rcv *ScalarStuff) MutateJustI64(n int64) bool

func (*ScalarStuff) MutateJustI8

func (rcv *ScalarStuff) MutateJustI8(n int8) bool

func (*ScalarStuff) MutateJustU16

func (rcv *ScalarStuff) MutateJustU16(n uint16) bool

func (*ScalarStuff) MutateJustU32

func (rcv *ScalarStuff) MutateJustU32(n uint32) bool

func (*ScalarStuff) MutateJustU64

func (rcv *ScalarStuff) MutateJustU64(n uint64) bool

func (*ScalarStuff) MutateJustU8

func (rcv *ScalarStuff) MutateJustU8(n byte) bool

func (*ScalarStuff) MutateMaybeBool

func (rcv *ScalarStuff) MutateMaybeBool(n bool) bool

func (*ScalarStuff) MutateMaybeEnum

func (rcv *ScalarStuff) MutateMaybeEnum(n OptionalByte) bool

func (*ScalarStuff) MutateMaybeF32

func (rcv *ScalarStuff) MutateMaybeF32(n float32) bool

func (*ScalarStuff) MutateMaybeF64

func (rcv *ScalarStuff) MutateMaybeF64(n float64) bool

func (*ScalarStuff) MutateMaybeI16

func (rcv *ScalarStuff) MutateMaybeI16(n int16) bool

func (*ScalarStuff) MutateMaybeI32

func (rcv *ScalarStuff) MutateMaybeI32(n int32) bool

func (*ScalarStuff) MutateMaybeI64

func (rcv *ScalarStuff) MutateMaybeI64(n int64) bool

func (*ScalarStuff) MutateMaybeI8

func (rcv *ScalarStuff) MutateMaybeI8(n int8) bool

func (*ScalarStuff) MutateMaybeU16

func (rcv *ScalarStuff) MutateMaybeU16(n uint16) bool

func (*ScalarStuff) MutateMaybeU32

func (rcv *ScalarStuff) MutateMaybeU32(n uint32) bool

func (*ScalarStuff) MutateMaybeU64

func (rcv *ScalarStuff) MutateMaybeU64(n uint64) bool

func (*ScalarStuff) MutateMaybeU8

func (rcv *ScalarStuff) MutateMaybeU8(n byte) bool

func (*ScalarStuff) Table

func (rcv *ScalarStuff) Table() flatbuffers.Table

func (*ScalarStuff) UnPack

func (rcv *ScalarStuff) UnPack() *ScalarStuffT

func (*ScalarStuff) UnPackTo

func (rcv *ScalarStuff) UnPackTo(t *ScalarStuffT)

type ScalarStuffT

type ScalarStuffT struct {
	JustI8      int8          `json:"just_i8"`
	MaybeI8     *int8         `json:"maybe_i8"`
	DefaultI8   int8          `json:"default_i8"`
	JustU8      byte          `json:"just_u8"`
	MaybeU8     *byte         `json:"maybe_u8"`
	DefaultU8   byte          `json:"default_u8"`
	JustI16     int16         `json:"just_i16"`
	MaybeI16    *int16        `json:"maybe_i16"`
	DefaultI16  int16         `json:"default_i16"`
	JustU16     uint16        `json:"just_u16"`
	MaybeU16    *uint16       `json:"maybe_u16"`
	DefaultU16  uint16        `json:"default_u16"`
	JustI32     int32         `json:"just_i32"`
	MaybeI32    *int32        `json:"maybe_i32"`
	DefaultI32  int32         `json:"default_i32"`
	JustU32     uint32        `json:"just_u32"`
	MaybeU32    *uint32       `json:"maybe_u32"`
	DefaultU32  uint32        `json:"default_u32"`
	JustI64     int64         `json:"just_i64"`
	MaybeI64    *int64        `json:"maybe_i64"`
	DefaultI64  int64         `json:"default_i64"`
	JustU64     uint64        `json:"just_u64"`
	MaybeU64    *uint64       `json:"maybe_u64"`
	DefaultU64  uint64        `json:"default_u64"`
	JustF32     float32       `json:"just_f32"`
	MaybeF32    *float32      `json:"maybe_f32"`
	DefaultF32  float32       `json:"default_f32"`
	JustF64     float64       `json:"just_f64"`
	MaybeF64    *float64      `json:"maybe_f64"`
	DefaultF64  float64       `json:"default_f64"`
	JustBool    bool          `json:"just_bool"`
	MaybeBool   *bool         `json:"maybe_bool"`
	DefaultBool bool          `json:"default_bool"`
	JustEnum    OptionalByte  `json:"just_enum"`
	MaybeEnum   *OptionalByte `json:"maybe_enum"`
	DefaultEnum OptionalByte  `json:"default_enum"`
}

func (*ScalarStuffT) Pack

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL