Documentation ¶
Index ¶
- Constants
- Variables
- func OptionalBool(value bool) *bool
- func OptionalByte(value byte) *byte
- func OptionalBytes(value []byte) *[]byte
- func OptionalFloat32(value float32) *float32
- func OptionalFloat64(value float64) *float64
- func OptionalInt16(value int16) *int16
- func OptionalInt32(value int32) *int32
- func OptionalInt64(value int64) *int64
- func OptionalInt8(value int8) *int8
- func OptionalRune(value rune) *rune
- func OptionalString(value string) *string
- func OptionalUInt16(value uint16) *uint16
- func OptionalUInt32(value uint32) *uint32
- func OptionalUInt64(value uint64) *uint64
- func OptionalUInt8(value uint8) *uint8
- func ReadBool(buffer []byte, offset int) bool
- func ReadByte(buffer []byte, offset int) byte
- func ReadBytes(buffer []byte, offset int, size int) []byte
- func ReadChar(buffer []byte, offset int) rune
- func ReadDouble(buffer []byte, offset int) float64
- func ReadFloat(buffer []byte, offset int) float32
- func ReadInt16(buffer []byte, offset int) int16
- func ReadInt32(buffer []byte, offset int) int32
- func ReadInt64(buffer []byte, offset int) int64
- func ReadInt8(buffer []byte, offset int) int8
- func ReadString(buffer []byte, offset int, size int) string
- func ReadUInt16(buffer []byte, offset int) uint16
- func ReadUInt32(buffer []byte, offset int) uint32
- func ReadUInt64(buffer []byte, offset int) uint64
- func ReadUInt8(buffer []byte, offset int) uint8
- func ReadWChar(buffer []byte, offset int) rune
- func WriteBool(buffer []byte, offset int, value bool)
- func WriteByte(buffer []byte, offset int, value byte)
- func WriteBytes(buffer []byte, offset int, value []byte)
- func WriteChar(buffer []byte, offset int, value rune)
- func WriteCount(buffer []byte, offset int, value byte, valueCount int)
- func WriteDouble(buffer []byte, offset int, value float64)
- func WriteFloat(buffer []byte, offset int, value float32)
- func WriteInt16(buffer []byte, offset int, value int16)
- func WriteInt32(buffer []byte, offset int, value int32)
- func WriteInt64(buffer []byte, offset int, value int64)
- func WriteInt8(buffer []byte, offset int, value int8)
- func WriteSlice(buffer []byte, offset int, value []byte, valueOffset int, valueSize int)
- func WriteString(buffer []byte, offset int, value string)
- func WriteTimestamp(buffer []byte, offset int, value Timestamp)
- func WriteUInt16(buffer []byte, offset int, value uint16)
- func WriteUInt32(buffer []byte, offset int, value uint32)
- func WriteUInt64(buffer []byte, offset int, value uint64)
- func WriteUInt8(buffer []byte, offset int, value uint8)
- func WriteUUID(buffer []byte, offset int, value UUID)
- func WriteWChar(buffer []byte, offset int, value rune)
- type Buffer
- func (b *Buffer) Allocate(size int) int
- func (b *Buffer) Attach(buffer []byte)
- func (b *Buffer) AttachBuffer(buffer *Buffer)
- func (b *Buffer) AttachBytes(buffer []byte, offset int, size int)
- func (b *Buffer) AttachCapacity(capacity int)
- func (b *Buffer) AttachNew()
- func (b *Buffer) Capacity() int
- func (b *Buffer) Data() []byte
- func (b *Buffer) Empty() bool
- func (b *Buffer) Offset() int
- func (b *Buffer) Remove(offset int, size int)
- func (b *Buffer) Reserve(capacity int)
- func (b *Buffer) Reset()
- func (b *Buffer) Resize(size int)
- func (b *Buffer) Shift(offset int)
- func (b *Buffer) Size() int
- func (b *Buffer) Unshift(offset int)
- type Decimal
- type FieldModelBool
- func (fm *FieldModelBool) FBEExtra() int
- func (fm *FieldModelBool) FBEOffset() int
- func (fm *FieldModelBool) FBEShift(size int)
- func (fm *FieldModelBool) FBESize() int
- func (fm *FieldModelBool) FBEUnshift(size int)
- func (fm *FieldModelBool) Get() (bool, error)
- func (fm *FieldModelBool) GetDefault(defaults bool) (bool, error)
- func (fm *FieldModelBool) Set(value bool) error
- func (fm *FieldModelBool) SetFBEOffset(value int)
- func (fm *FieldModelBool) Verify() bool
- type FieldModelByte
- func (fm *FieldModelByte) FBEExtra() int
- func (fm *FieldModelByte) FBEOffset() int
- func (fm *FieldModelByte) FBEShift(size int)
- func (fm *FieldModelByte) FBESize() int
- func (fm *FieldModelByte) FBEUnshift(size int)
- func (fm *FieldModelByte) Get() (byte, error)
- func (fm *FieldModelByte) GetDefault(defaults byte) (byte, error)
- func (fm *FieldModelByte) Set(value byte) error
- func (fm *FieldModelByte) SetFBEOffset(value int)
- func (fm *FieldModelByte) Verify() bool
- type FieldModelBytes
- func (fm *FieldModelBytes) FBEExtra() int
- func (fm *FieldModelBytes) FBEOffset() int
- func (fm *FieldModelBytes) FBEShift(size int)
- func (fm *FieldModelBytes) FBESize() int
- func (fm *FieldModelBytes) FBEUnshift(size int)
- func (fm *FieldModelBytes) Get() ([]byte, error)
- func (fm *FieldModelBytes) GetDefault(defaults []byte) ([]byte, error)
- func (fm *FieldModelBytes) Set(value []byte) error
- func (fm *FieldModelBytes) SetFBEOffset(value int)
- func (fm *FieldModelBytes) Verify() bool
- type FieldModelChar
- func (fm *FieldModelChar) FBEExtra() int
- func (fm *FieldModelChar) FBEOffset() int
- func (fm *FieldModelChar) FBEShift(size int)
- func (fm *FieldModelChar) FBESize() int
- func (fm *FieldModelChar) FBEUnshift(size int)
- func (fm *FieldModelChar) Get() (rune, error)
- func (fm *FieldModelChar) GetDefault(defaults rune) (rune, error)
- func (fm *FieldModelChar) Set(value rune) error
- func (fm *FieldModelChar) SetFBEOffset(value int)
- func (fm *FieldModelChar) Verify() bool
- type FieldModelDecimal
- func (fm *FieldModelDecimal) FBEExtra() int
- func (fm *FieldModelDecimal) FBEOffset() int
- func (fm *FieldModelDecimal) FBEShift(size int)
- func (fm *FieldModelDecimal) FBESize() int
- func (fm *FieldModelDecimal) FBEUnshift(size int)
- func (fm *FieldModelDecimal) Get() (Decimal, error)
- func (fm *FieldModelDecimal) GetDefault(defaults Decimal) (Decimal, error)
- func (fm *FieldModelDecimal) Set(value Decimal) error
- func (fm *FieldModelDecimal) SetFBEOffset(value int)
- func (fm *FieldModelDecimal) Verify() bool
- type FieldModelDouble
- func (fm *FieldModelDouble) FBEExtra() int
- func (fm *FieldModelDouble) FBEOffset() int
- func (fm *FieldModelDouble) FBEShift(size int)
- func (fm *FieldModelDouble) FBESize() int
- func (fm *FieldModelDouble) FBEUnshift(size int)
- func (fm *FieldModelDouble) Get() (float64, error)
- func (fm *FieldModelDouble) GetDefault(defaults float64) (float64, error)
- func (fm *FieldModelDouble) Set(value float64) error
- func (fm *FieldModelDouble) SetFBEOffset(value int)
- func (fm *FieldModelDouble) Verify() bool
- type FieldModelFloat
- func (fm *FieldModelFloat) FBEExtra() int
- func (fm *FieldModelFloat) FBEOffset() int
- func (fm *FieldModelFloat) FBEShift(size int)
- func (fm *FieldModelFloat) FBESize() int
- func (fm *FieldModelFloat) FBEUnshift(size int)
- func (fm *FieldModelFloat) Get() (float32, error)
- func (fm *FieldModelFloat) GetDefault(defaults float32) (float32, error)
- func (fm *FieldModelFloat) Set(value float32) error
- func (fm *FieldModelFloat) SetFBEOffset(value int)
- func (fm *FieldModelFloat) Verify() bool
- type FieldModelInt16
- func (fm *FieldModelInt16) FBEExtra() int
- func (fm *FieldModelInt16) FBEOffset() int
- func (fm *FieldModelInt16) FBEShift(size int)
- func (fm *FieldModelInt16) FBESize() int
- func (fm *FieldModelInt16) FBEUnshift(size int)
- func (fm *FieldModelInt16) Get() (int16, error)
- func (fm *FieldModelInt16) GetDefault(defaults int16) (int16, error)
- func (fm *FieldModelInt16) Set(value int16) error
- func (fm *FieldModelInt16) SetFBEOffset(value int)
- func (fm *FieldModelInt16) Verify() bool
- type FieldModelInt32
- func (fm *FieldModelInt32) FBEExtra() int
- func (fm *FieldModelInt32) FBEOffset() int
- func (fm *FieldModelInt32) FBEShift(size int)
- func (fm *FieldModelInt32) FBESize() int
- func (fm *FieldModelInt32) FBEUnshift(size int)
- func (fm *FieldModelInt32) Get() (int32, error)
- func (fm *FieldModelInt32) GetDefault(defaults int32) (int32, error)
- func (fm *FieldModelInt32) Set(value int32) error
- func (fm *FieldModelInt32) SetFBEOffset(value int)
- func (fm *FieldModelInt32) Verify() bool
- type FieldModelInt64
- func (fm *FieldModelInt64) FBEExtra() int
- func (fm *FieldModelInt64) FBEOffset() int
- func (fm *FieldModelInt64) FBEShift(size int)
- func (fm *FieldModelInt64) FBESize() int
- func (fm *FieldModelInt64) FBEUnshift(size int)
- func (fm *FieldModelInt64) Get() (int64, error)
- func (fm *FieldModelInt64) GetDefault(defaults int64) (int64, error)
- func (fm *FieldModelInt64) Set(value int64) error
- func (fm *FieldModelInt64) SetFBEOffset(value int)
- func (fm *FieldModelInt64) Verify() bool
- type FieldModelInt8
- func (fm *FieldModelInt8) FBEExtra() int
- func (fm *FieldModelInt8) FBEOffset() int
- func (fm *FieldModelInt8) FBEShift(size int)
- func (fm *FieldModelInt8) FBESize() int
- func (fm *FieldModelInt8) FBEUnshift(size int)
- func (fm *FieldModelInt8) Get() (int8, error)
- func (fm *FieldModelInt8) GetDefault(defaults int8) (int8, error)
- func (fm *FieldModelInt8) Set(value int8) error
- func (fm *FieldModelInt8) SetFBEOffset(value int)
- func (fm *FieldModelInt8) Verify() bool
- type FieldModelString
- func (fm *FieldModelString) FBEExtra() int
- func (fm *FieldModelString) FBEOffset() int
- func (fm *FieldModelString) FBEShift(size int)
- func (fm *FieldModelString) FBESize() int
- func (fm *FieldModelString) FBEUnshift(size int)
- func (fm *FieldModelString) Get() (string, error)
- func (fm *FieldModelString) GetDefault(defaults string) (string, error)
- func (fm *FieldModelString) Set(value string) error
- func (fm *FieldModelString) SetFBEOffset(value int)
- func (fm *FieldModelString) Verify() bool
- type FieldModelTimestamp
- func (fm *FieldModelTimestamp) FBEExtra() int
- func (fm *FieldModelTimestamp) FBEOffset() int
- func (fm *FieldModelTimestamp) FBEShift(size int)
- func (fm *FieldModelTimestamp) FBESize() int
- func (fm *FieldModelTimestamp) FBEUnshift(size int)
- func (fm *FieldModelTimestamp) Get() (Timestamp, error)
- func (fm *FieldModelTimestamp) GetDefault(defaults Timestamp) (Timestamp, error)
- func (fm *FieldModelTimestamp) Set(value Timestamp) error
- func (fm *FieldModelTimestamp) SetFBEOffset(value int)
- func (fm *FieldModelTimestamp) Verify() bool
- type FieldModelUInt16
- func (fm *FieldModelUInt16) FBEExtra() int
- func (fm *FieldModelUInt16) FBEOffset() int
- func (fm *FieldModelUInt16) FBEShift(size int)
- func (fm *FieldModelUInt16) FBESize() int
- func (fm *FieldModelUInt16) FBEUnshift(size int)
- func (fm *FieldModelUInt16) Get() (uint16, error)
- func (fm *FieldModelUInt16) GetDefault(defaults uint16) (uint16, error)
- func (fm *FieldModelUInt16) Set(value uint16) error
- func (fm *FieldModelUInt16) SetFBEOffset(value int)
- func (fm *FieldModelUInt16) Verify() bool
- type FieldModelUInt32
- func (fm *FieldModelUInt32) FBEExtra() int
- func (fm *FieldModelUInt32) FBEOffset() int
- func (fm *FieldModelUInt32) FBEShift(size int)
- func (fm *FieldModelUInt32) FBESize() int
- func (fm *FieldModelUInt32) FBEUnshift(size int)
- func (fm *FieldModelUInt32) Get() (uint32, error)
- func (fm *FieldModelUInt32) GetDefault(defaults uint32) (uint32, error)
- func (fm *FieldModelUInt32) Set(value uint32) error
- func (fm *FieldModelUInt32) SetFBEOffset(value int)
- func (fm *FieldModelUInt32) Verify() bool
- type FieldModelUInt64
- func (fm *FieldModelUInt64) FBEExtra() int
- func (fm *FieldModelUInt64) FBEOffset() int
- func (fm *FieldModelUInt64) FBEShift(size int)
- func (fm *FieldModelUInt64) FBESize() int
- func (fm *FieldModelUInt64) FBEUnshift(size int)
- func (fm *FieldModelUInt64) Get() (uint64, error)
- func (fm *FieldModelUInt64) GetDefault(defaults uint64) (uint64, error)
- func (fm *FieldModelUInt64) Set(value uint64) error
- func (fm *FieldModelUInt64) SetFBEOffset(value int)
- func (fm *FieldModelUInt64) Verify() bool
- type FieldModelUInt8
- func (fm *FieldModelUInt8) FBEExtra() int
- func (fm *FieldModelUInt8) FBEOffset() int
- func (fm *FieldModelUInt8) FBEShift(size int)
- func (fm *FieldModelUInt8) FBESize() int
- func (fm *FieldModelUInt8) FBEUnshift(size int)
- func (fm *FieldModelUInt8) Get() (uint8, error)
- func (fm *FieldModelUInt8) GetDefault(defaults uint8) (uint8, error)
- func (fm *FieldModelUInt8) Set(value uint8) error
- func (fm *FieldModelUInt8) SetFBEOffset(value int)
- func (fm *FieldModelUInt8) Verify() bool
- type FieldModelUUID
- func (fm *FieldModelUUID) FBEExtra() int
- func (fm *FieldModelUUID) FBEOffset() int
- func (fm *FieldModelUUID) FBEShift(size int)
- func (fm *FieldModelUUID) FBESize() int
- func (fm *FieldModelUUID) FBEUnshift(size int)
- func (fm *FieldModelUUID) Get() (UUID, error)
- func (fm *FieldModelUUID) GetDefault(defaults UUID) (UUID, error)
- func (fm *FieldModelUUID) Set(value UUID) error
- func (fm *FieldModelUUID) SetFBEOffset(value int)
- func (fm *FieldModelUUID) Verify() bool
- type FieldModelWChar
- func (fm *FieldModelWChar) FBEExtra() int
- func (fm *FieldModelWChar) FBEOffset() int
- func (fm *FieldModelWChar) FBEShift(size int)
- func (fm *FieldModelWChar) FBESize() int
- func (fm *FieldModelWChar) FBEUnshift(size int)
- func (fm *FieldModelWChar) Get() (rune, error)
- func (fm *FieldModelWChar) GetDefault(defaults rune) (rune, error)
- func (fm *FieldModelWChar) Set(value rune) error
- func (fm *FieldModelWChar) SetFBEOffset(value int)
- func (fm *FieldModelWChar) Verify() bool
- type FinalModelBool
- func (fm *FinalModelBool) FBEAllocationSize(value bool) int
- func (fm *FinalModelBool) FBEOffset() int
- func (fm *FinalModelBool) FBEShift(size int)
- func (fm *FinalModelBool) FBESize() int
- func (fm *FinalModelBool) FBEUnshift(size int)
- func (fm *FinalModelBool) Get() (bool, int, error)
- func (fm *FinalModelBool) Set(value bool) (int, error)
- func (fm *FinalModelBool) SetFBEOffset(value int)
- func (fm *FinalModelBool) Verify() int
- type FinalModelByte
- func (fm *FinalModelByte) FBEAllocationSize(value byte) int
- func (fm *FinalModelByte) FBEOffset() int
- func (fm *FinalModelByte) FBEShift(size int)
- func (fm *FinalModelByte) FBESize() int
- func (fm *FinalModelByte) FBEUnshift(size int)
- func (fm *FinalModelByte) Get() (byte, int, error)
- func (fm *FinalModelByte) Set(value byte) (int, error)
- func (fm *FinalModelByte) SetFBEOffset(value int)
- func (fm *FinalModelByte) Verify() int
- type FinalModelBytes
- func (fm *FinalModelBytes) FBEAllocationSize(value []byte) int
- func (fm *FinalModelBytes) FBEOffset() int
- func (fm *FinalModelBytes) FBEShift(size int)
- func (fm *FinalModelBytes) FBEUnshift(size int)
- func (fm *FinalModelBytes) Get() ([]byte, int, error)
- func (fm *FinalModelBytes) Set(value []byte) (int, error)
- func (fm *FinalModelBytes) SetFBEOffset(value int)
- func (fm *FinalModelBytes) Verify() int
- type FinalModelChar
- func (fm *FinalModelChar) FBEAllocationSize(value rune) int
- func (fm *FinalModelChar) FBEOffset() int
- func (fm *FinalModelChar) FBEShift(size int)
- func (fm *FinalModelChar) FBESize() int
- func (fm *FinalModelChar) FBEUnshift(size int)
- func (fm *FinalModelChar) Get() (rune, int, error)
- func (fm *FinalModelChar) Set(value rune) (int, error)
- func (fm *FinalModelChar) SetFBEOffset(value int)
- func (fm *FinalModelChar) Verify() int
- type FinalModelDecimal
- func (fm *FinalModelDecimal) FBEAllocationSize(value Decimal) int
- func (fm *FinalModelDecimal) FBEOffset() int
- func (fm *FinalModelDecimal) FBEShift(size int)
- func (fm *FinalModelDecimal) FBESize() int
- func (fm *FinalModelDecimal) FBEUnshift(size int)
- func (fm *FinalModelDecimal) Get() (Decimal, int, error)
- func (fm *FinalModelDecimal) Set(value Decimal) (int, error)
- func (fm *FinalModelDecimal) SetFBEOffset(value int)
- func (fm *FinalModelDecimal) Verify() int
- type FinalModelDouble
- func (fm *FinalModelDouble) FBEAllocationSize(value float64) int
- func (fm *FinalModelDouble) FBEOffset() int
- func (fm *FinalModelDouble) FBEShift(size int)
- func (fm *FinalModelDouble) FBESize() int
- func (fm *FinalModelDouble) FBEUnshift(size int)
- func (fm *FinalModelDouble) Get() (float64, int, error)
- func (fm *FinalModelDouble) Set(value float64) (int, error)
- func (fm *FinalModelDouble) SetFBEOffset(value int)
- func (fm *FinalModelDouble) Verify() int
- type FinalModelFloat
- func (fm *FinalModelFloat) FBEAllocationSize(value float32) int
- func (fm *FinalModelFloat) FBEOffset() int
- func (fm *FinalModelFloat) FBEShift(size int)
- func (fm *FinalModelFloat) FBESize() int
- func (fm *FinalModelFloat) FBEUnshift(size int)
- func (fm *FinalModelFloat) Get() (float32, int, error)
- func (fm *FinalModelFloat) Set(value float32) (int, error)
- func (fm *FinalModelFloat) SetFBEOffset(value int)
- func (fm *FinalModelFloat) Verify() int
- type FinalModelInt16
- func (fm *FinalModelInt16) FBEAllocationSize(value int16) int
- func (fm *FinalModelInt16) FBEOffset() int
- func (fm *FinalModelInt16) FBEShift(size int)
- func (fm *FinalModelInt16) FBESize() int
- func (fm *FinalModelInt16) FBEUnshift(size int)
- func (fm *FinalModelInt16) Get() (int16, int, error)
- func (fm *FinalModelInt16) Set(value int16) (int, error)
- func (fm *FinalModelInt16) SetFBEOffset(value int)
- func (fm *FinalModelInt16) Verify() int
- type FinalModelInt32
- func (fm *FinalModelInt32) FBEAllocationSize(value int32) int
- func (fm *FinalModelInt32) FBEOffset() int
- func (fm *FinalModelInt32) FBEShift(size int)
- func (fm *FinalModelInt32) FBESize() int
- func (fm *FinalModelInt32) FBEUnshift(size int)
- func (fm *FinalModelInt32) Get() (int32, int, error)
- func (fm *FinalModelInt32) Set(value int32) (int, error)
- func (fm *FinalModelInt32) SetFBEOffset(value int)
- func (fm *FinalModelInt32) Verify() int
- type FinalModelInt64
- func (fm *FinalModelInt64) FBEAllocationSize(value int64) int
- func (fm *FinalModelInt64) FBEOffset() int
- func (fm *FinalModelInt64) FBEShift(size int)
- func (fm *FinalModelInt64) FBESize() int
- func (fm *FinalModelInt64) FBEUnshift(size int)
- func (fm *FinalModelInt64) Get() (int64, int, error)
- func (fm *FinalModelInt64) Set(value int64) (int, error)
- func (fm *FinalModelInt64) SetFBEOffset(value int)
- func (fm *FinalModelInt64) Verify() int
- type FinalModelInt8
- func (fm *FinalModelInt8) FBEAllocationSize(value int8) int
- func (fm *FinalModelInt8) FBEOffset() int
- func (fm *FinalModelInt8) FBEShift(size int)
- func (fm *FinalModelInt8) FBESize() int
- func (fm *FinalModelInt8) FBEUnshift(size int)
- func (fm *FinalModelInt8) Get() (int8, int, error)
- func (fm *FinalModelInt8) Set(value int8) (int, error)
- func (fm *FinalModelInt8) SetFBEOffset(value int)
- func (fm *FinalModelInt8) Verify() int
- type FinalModelString
- func (fm *FinalModelString) FBEAllocationSize(value string) int
- func (fm *FinalModelString) FBEOffset() int
- func (fm *FinalModelString) FBEShift(size int)
- func (fm *FinalModelString) FBEUnshift(size int)
- func (fm *FinalModelString) Get() (string, int, error)
- func (fm *FinalModelString) Set(value string) (int, error)
- func (fm *FinalModelString) SetFBEOffset(value int)
- func (fm *FinalModelString) Verify() int
- type FinalModelTimestamp
- func (fm *FinalModelTimestamp) FBEAllocationSize(value Timestamp) int
- func (fm *FinalModelTimestamp) FBEOffset() int
- func (fm *FinalModelTimestamp) FBEShift(size int)
- func (fm *FinalModelTimestamp) FBESize() int
- func (fm *FinalModelTimestamp) FBEUnshift(size int)
- func (fm *FinalModelTimestamp) Get() (Timestamp, int, error)
- func (fm *FinalModelTimestamp) Set(value Timestamp) (int, error)
- func (fm *FinalModelTimestamp) SetFBEOffset(value int)
- func (fm *FinalModelTimestamp) Verify() int
- type FinalModelUInt16
- func (fm *FinalModelUInt16) FBEAllocationSize(value uint16) int
- func (fm *FinalModelUInt16) FBEOffset() int
- func (fm *FinalModelUInt16) FBEShift(size int)
- func (fm *FinalModelUInt16) FBESize() int
- func (fm *FinalModelUInt16) FBEUnshift(size int)
- func (fm *FinalModelUInt16) Get() (uint16, int, error)
- func (fm *FinalModelUInt16) Set(value uint16) (int, error)
- func (fm *FinalModelUInt16) SetFBEOffset(value int)
- func (fm *FinalModelUInt16) Verify() int
- type FinalModelUInt32
- func (fm *FinalModelUInt32) FBEAllocationSize(value uint32) int
- func (fm *FinalModelUInt32) FBEOffset() int
- func (fm *FinalModelUInt32) FBEShift(size int)
- func (fm *FinalModelUInt32) FBESize() int
- func (fm *FinalModelUInt32) FBEUnshift(size int)
- func (fm *FinalModelUInt32) Get() (uint32, int, error)
- func (fm *FinalModelUInt32) Set(value uint32) (int, error)
- func (fm *FinalModelUInt32) SetFBEOffset(value int)
- func (fm *FinalModelUInt32) Verify() int
- type FinalModelUInt64
- func (fm *FinalModelUInt64) FBEAllocationSize(value uint64) int
- func (fm *FinalModelUInt64) FBEOffset() int
- func (fm *FinalModelUInt64) FBEShift(size int)
- func (fm *FinalModelUInt64) FBESize() int
- func (fm *FinalModelUInt64) FBEUnshift(size int)
- func (fm *FinalModelUInt64) Get() (uint64, int, error)
- func (fm *FinalModelUInt64) Set(value uint64) (int, error)
- func (fm *FinalModelUInt64) SetFBEOffset(value int)
- func (fm *FinalModelUInt64) Verify() int
- type FinalModelUInt8
- func (fm *FinalModelUInt8) FBEAllocationSize(value uint8) int
- func (fm *FinalModelUInt8) FBEOffset() int
- func (fm *FinalModelUInt8) FBEShift(size int)
- func (fm *FinalModelUInt8) FBESize() int
- func (fm *FinalModelUInt8) FBEUnshift(size int)
- func (fm *FinalModelUInt8) Get() (uint8, int, error)
- func (fm *FinalModelUInt8) Set(value uint8) (int, error)
- func (fm *FinalModelUInt8) SetFBEOffset(value int)
- func (fm *FinalModelUInt8) Verify() int
- type FinalModelUUID
- func (fm *FinalModelUUID) FBEAllocationSize(value UUID) int
- func (fm *FinalModelUUID) FBEOffset() int
- func (fm *FinalModelUUID) FBEShift(size int)
- func (fm *FinalModelUUID) FBESize() int
- func (fm *FinalModelUUID) FBEUnshift(size int)
- func (fm *FinalModelUUID) Get() (UUID, int, error)
- func (fm *FinalModelUUID) Set(value UUID) (int, error)
- func (fm *FinalModelUUID) SetFBEOffset(value int)
- func (fm *FinalModelUUID) Verify() int
- type FinalModelWChar
- func (fm *FinalModelWChar) FBEAllocationSize(value rune) int
- func (fm *FinalModelWChar) FBEOffset() int
- func (fm *FinalModelWChar) FBEShift(size int)
- func (fm *FinalModelWChar) FBESize() int
- func (fm *FinalModelWChar) FBEUnshift(size int)
- func (fm *FinalModelWChar) Get() (rune, int, error)
- func (fm *FinalModelWChar) Set(value rune) (int, error)
- func (fm *FinalModelWChar) SetFBEOffset(value int)
- func (fm *FinalModelWChar) Verify() int
- type OnReceive
- type OnReceiveFunc
- type OnReceiveLog
- type OnReceiveLogFunc
- type OnSend
- type OnSendFunc
- type OnSendLog
- type OnSendLogFunc
- type Receiver
- func (r *Receiver) Buffer() *Buffer
- func (r *Receiver) Final() bool
- func (r *Receiver) Logging() bool
- func (r *Receiver) Receive(buffer []byte) error
- func (r *Receiver) ReceiveBuffer(buffer *Buffer) error
- func (r *Receiver) Reset()
- func (r *Receiver) SetLogging(logging bool)
- func (r *Receiver) SetupHandlerOnReceive(handler OnReceive)
- func (r *Receiver) SetupHandlerOnReceiveFunc(function func(fbeType int, buffer []byte) (bool, error))
- func (r *Receiver) SetupHandlerOnReceiveLog(handler OnReceiveLog)
- func (r *Receiver) SetupHandlerOnReceiveLogFunc(function func(message string))
- func (r *Receiver) SetupHandlers(handlers interface{})
- type Sender
- func (s *Sender) Buffer() *Buffer
- func (s *Sender) Final() bool
- func (s *Sender) Logging() bool
- func (s *Sender) Reset()
- func (s *Sender) SendSerialized(serialized int) (int, error)
- func (s *Sender) SetLogging(logging bool)
- func (s *Sender) SetupHandlerOnSend(handler OnSend)
- func (s *Sender) SetupHandlerOnSendFunc(function func(buffer []byte) (int, error))
- func (s *Sender) SetupHandlerOnSendLog(handler OnSendLog)
- func (s *Sender) SetupHandlerOnSendLogFunc(function func(message string))
- func (s *Sender) SetupHandlers(handlers interface{})
- type Timestamp
- func OptionalTimestamp(value Timestamp) *Timestamp
- func ReadTimestamp(buffer []byte, offset int) Timestamp
- func TimestampEpoch() Timestamp
- func TimestampFromDate(year, month, day int) Timestamp
- func TimestampFromDateTime(year, month, day, hour, minute, second, nanoseconds int) Timestamp
- func TimestampFromNanoseconds(nanoseconds uint64) Timestamp
- func TimestampUTC() Timestamp
- type UUID
Constants ¶
const MaxInt = int(^uint(0) >> 1)
Maximal signed integer value
const MaxUint = ^uint(0)
Maximal unsigned integer value
const MinInt = -MaxInt - 1
Minimal signed integer value
const MinUint = 0
Minimal unsigned integer value
const Version = "1.14.5.0"
Package version
Variables ¶
var Json = jsoniter.ConfigCompatibleWithStandardLibrary
Json engine
Functions ¶
func ReadString ¶
Read string from the buffer
func ReadUInt16 ¶
Read unsigned 16-bits integer from the buffer
func ReadUInt32 ¶
Read unsigned 32-bits integer from the buffer
func ReadUInt64 ¶
Read unsigned 64-bits integer from the buffer
func WriteBytes ¶
Write bytes into the buffer
func WriteCount ¶
Write count of single byte into the buffer
func WriteDouble ¶
Write double into the buffer
func WriteFloat ¶
Write float into the buffer
func WriteInt16 ¶
Write signed 16-bits integer into the buffer
func WriteInt32 ¶
Write signed 32-bits integer into the buffer
func WriteInt64 ¶
Write signed 64-bits integer into the buffer
func WriteSlice ¶
Write slice into the buffer
func WriteString ¶
Write string into the buffer
func WriteTimestamp ¶
Write timestamp into the buffer
func WriteUInt16 ¶
Write unsigned 16-bits integer into the buffer
func WriteUInt32 ¶
Write unsigned 32-bits integer into the buffer
func WriteUInt64 ¶
Write unsigned 64-bits integer into the buffer
func WriteUInt8 ¶
Write unsigned 8-bits integer into the buffer
func WriteWChar ¶
Write four bytes character into the buffer
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Fast Binary Encoding buffer based on dynamic byte array
func NewAttached ¶
Create a buffer with attached bytes memory buffer
func NewAttachedBuffer ¶
Create a buffer with another attached buffer
func NewAttachedBytes ¶
Create a buffer with attached bytes memory buffer with offset and size
func NewCapacityBuffer ¶
Create an empty buffer with the given capacity
func (*Buffer) Allocate ¶
Allocate memory in the current write buffer and return offset to the allocated memory block
func (*Buffer) AttachBytes ¶
Attach the given bytes memory buffer with offset and size
func (*Buffer) AttachCapacity ¶
Attach an empty memory buffer with the given capacity
type Decimal ¶
Decimal struct
func DecimalFromFloat ¶
Create a new decimal from the given float value
func DecimalFromString ¶
Create a new decimal from the given string
type FieldModelBool ¶
type FieldModelBool struct {
// contains filtered or unexported fields
}
Fast Binary Encoding Bool field model
func NewFieldModelBool ¶
func NewFieldModelBool(buffer *Buffer, offset int) *FieldModelBool
Create a new Bool field model
func (*FieldModelBool) FBEShift ¶
func (fm *FieldModelBool) FBEShift(size int)
Shift the current field offset
func (*FieldModelBool) FBEUnshift ¶
func (fm *FieldModelBool) FBEUnshift(size int)
Unshift the current field offset
func (*FieldModelBool) GetDefault ¶
func (fm *FieldModelBool) GetDefault(defaults bool) (bool, error)
Get the value with provided default value
func (*FieldModelBool) SetFBEOffset ¶
func (fm *FieldModelBool) SetFBEOffset(value int)
Set the field offset
type FieldModelByte ¶
type FieldModelByte struct {
// contains filtered or unexported fields
}
Fast Binary Encoding Byte field model
func NewFieldModelByte ¶
func NewFieldModelByte(buffer *Buffer, offset int) *FieldModelByte
Create a new Byte field model
func (*FieldModelByte) FBEShift ¶
func (fm *FieldModelByte) FBEShift(size int)
Shift the current field offset
func (*FieldModelByte) FBEUnshift ¶
func (fm *FieldModelByte) FBEUnshift(size int)
Unshift the current field offset
func (*FieldModelByte) GetDefault ¶
func (fm *FieldModelByte) GetDefault(defaults byte) (byte, error)
Get the value with provided default value
func (*FieldModelByte) SetFBEOffset ¶
func (fm *FieldModelByte) SetFBEOffset(value int)
Set the field offset
type FieldModelBytes ¶
type FieldModelBytes struct {
// contains filtered or unexported fields
}
Fast Binary Encoding bytes field model
func NewFieldModelBytes ¶
func NewFieldModelBytes(buffer *Buffer, offset int) *FieldModelBytes
Create a new bytes field model
func (*FieldModelBytes) FBEExtra ¶
func (fm *FieldModelBytes) FBEExtra() int
Get the field extra size
func (*FieldModelBytes) FBEShift ¶
func (fm *FieldModelBytes) FBEShift(size int)
Shift the current field offset
func (*FieldModelBytes) FBEUnshift ¶
func (fm *FieldModelBytes) FBEUnshift(size int)
Unshift the current field offset
func (*FieldModelBytes) GetDefault ¶
func (fm *FieldModelBytes) GetDefault(defaults []byte) ([]byte, error)
Get the bytes value with provided default value
func (*FieldModelBytes) Set ¶
func (fm *FieldModelBytes) Set(value []byte) error
Set the bytes value
func (*FieldModelBytes) SetFBEOffset ¶
func (fm *FieldModelBytes) SetFBEOffset(value int)
Set the field offset
func (*FieldModelBytes) Verify ¶
func (fm *FieldModelBytes) Verify() bool
Check if the bytes value is valid
type FieldModelChar ¶
type FieldModelChar struct {
// contains filtered or unexported fields
}
Fast Binary Encoding Char field model
func NewFieldModelChar ¶
func NewFieldModelChar(buffer *Buffer, offset int) *FieldModelChar
Create a new Char field model
func (*FieldModelChar) FBEShift ¶
func (fm *FieldModelChar) FBEShift(size int)
Shift the current field offset
func (*FieldModelChar) FBEUnshift ¶
func (fm *FieldModelChar) FBEUnshift(size int)
Unshift the current field offset
func (*FieldModelChar) GetDefault ¶
func (fm *FieldModelChar) GetDefault(defaults rune) (rune, error)
Get the value with provided default value
func (*FieldModelChar) SetFBEOffset ¶
func (fm *FieldModelChar) SetFBEOffset(value int)
Set the field offset
type FieldModelDecimal ¶
type FieldModelDecimal struct {
// contains filtered or unexported fields
}
Fast Binary Encoding decimal field model
func NewFieldModelDecimal ¶
func NewFieldModelDecimal(buffer *Buffer, offset int) *FieldModelDecimal
Create a new decimal field model
func (*FieldModelDecimal) FBEExtra ¶
func (fm *FieldModelDecimal) FBEExtra() int
Get the field extra size
func (*FieldModelDecimal) FBEOffset ¶
func (fm *FieldModelDecimal) FBEOffset() int
Get the field offset
func (*FieldModelDecimal) FBEShift ¶
func (fm *FieldModelDecimal) FBEShift(size int)
Shift the current field offset
func (*FieldModelDecimal) FBEUnshift ¶
func (fm *FieldModelDecimal) FBEUnshift(size int)
Unshift the current field offset
func (*FieldModelDecimal) Get ¶
func (fm *FieldModelDecimal) Get() (Decimal, error)
Get the decimal value
func (*FieldModelDecimal) GetDefault ¶
func (fm *FieldModelDecimal) GetDefault(defaults Decimal) (Decimal, error)
Get the decimal value with provided default value
func (*FieldModelDecimal) Set ¶
func (fm *FieldModelDecimal) Set(value Decimal) error
Set the decimal value
func (*FieldModelDecimal) SetFBEOffset ¶
func (fm *FieldModelDecimal) SetFBEOffset(value int)
Set the field offset
func (*FieldModelDecimal) Verify ¶
func (fm *FieldModelDecimal) Verify() bool
Check if the decimal value is valid
type FieldModelDouble ¶
type FieldModelDouble struct {
// contains filtered or unexported fields
}
Fast Binary Encoding Double field model
func NewFieldModelDouble ¶
func NewFieldModelDouble(buffer *Buffer, offset int) *FieldModelDouble
Create a new Double field model
func (*FieldModelDouble) FBEExtra ¶
func (fm *FieldModelDouble) FBEExtra() int
Get the field extra size
func (*FieldModelDouble) FBEOffset ¶
func (fm *FieldModelDouble) FBEOffset() int
Get the field offset
func (*FieldModelDouble) FBEShift ¶
func (fm *FieldModelDouble) FBEShift(size int)
Shift the current field offset
func (*FieldModelDouble) FBEUnshift ¶
func (fm *FieldModelDouble) FBEUnshift(size int)
Unshift the current field offset
func (*FieldModelDouble) GetDefault ¶
func (fm *FieldModelDouble) GetDefault(defaults float64) (float64, error)
Get the value with provided default value
func (*FieldModelDouble) SetFBEOffset ¶
func (fm *FieldModelDouble) SetFBEOffset(value int)
Set the field offset
func (*FieldModelDouble) Verify ¶
func (fm *FieldModelDouble) Verify() bool
Check if the value is valid
type FieldModelFloat ¶
type FieldModelFloat struct {
// contains filtered or unexported fields
}
Fast Binary Encoding Float field model
func NewFieldModelFloat ¶
func NewFieldModelFloat(buffer *Buffer, offset int) *FieldModelFloat
Create a new Float field model
func (*FieldModelFloat) FBEExtra ¶
func (fm *FieldModelFloat) FBEExtra() int
Get the field extra size
func (*FieldModelFloat) FBEShift ¶
func (fm *FieldModelFloat) FBEShift(size int)
Shift the current field offset
func (*FieldModelFloat) FBEUnshift ¶
func (fm *FieldModelFloat) FBEUnshift(size int)
Unshift the current field offset
func (*FieldModelFloat) GetDefault ¶
func (fm *FieldModelFloat) GetDefault(defaults float32) (float32, error)
Get the value with provided default value
func (*FieldModelFloat) SetFBEOffset ¶
func (fm *FieldModelFloat) SetFBEOffset(value int)
Set the field offset
func (*FieldModelFloat) Verify ¶
func (fm *FieldModelFloat) Verify() bool
Check if the value is valid
type FieldModelInt16 ¶
type FieldModelInt16 struct {
// contains filtered or unexported fields
}
Fast Binary Encoding Int16 field model
func NewFieldModelInt16 ¶
func NewFieldModelInt16(buffer *Buffer, offset int) *FieldModelInt16
Create a new Int16 field model
func (*FieldModelInt16) FBEExtra ¶
func (fm *FieldModelInt16) FBEExtra() int
Get the field extra size
func (*FieldModelInt16) FBEShift ¶
func (fm *FieldModelInt16) FBEShift(size int)
Shift the current field offset
func (*FieldModelInt16) FBEUnshift ¶
func (fm *FieldModelInt16) FBEUnshift(size int)
Unshift the current field offset
func (*FieldModelInt16) GetDefault ¶
func (fm *FieldModelInt16) GetDefault(defaults int16) (int16, error)
Get the value with provided default value
func (*FieldModelInt16) SetFBEOffset ¶
func (fm *FieldModelInt16) SetFBEOffset(value int)
Set the field offset
func (*FieldModelInt16) Verify ¶
func (fm *FieldModelInt16) Verify() bool
Check if the value is valid
type FieldModelInt32 ¶
type FieldModelInt32 struct {
// contains filtered or unexported fields
}
Fast Binary Encoding Int32 field model
func NewFieldModelInt32 ¶
func NewFieldModelInt32(buffer *Buffer, offset int) *FieldModelInt32
Create a new Int32 field model
func (*FieldModelInt32) FBEExtra ¶
func (fm *FieldModelInt32) FBEExtra() int
Get the field extra size
func (*FieldModelInt32) FBEShift ¶
func (fm *FieldModelInt32) FBEShift(size int)
Shift the current field offset
func (*FieldModelInt32) FBEUnshift ¶
func (fm *FieldModelInt32) FBEUnshift(size int)
Unshift the current field offset
func (*FieldModelInt32) GetDefault ¶
func (fm *FieldModelInt32) GetDefault(defaults int32) (int32, error)
Get the value with provided default value
func (*FieldModelInt32) SetFBEOffset ¶
func (fm *FieldModelInt32) SetFBEOffset(value int)
Set the field offset
func (*FieldModelInt32) Verify ¶
func (fm *FieldModelInt32) Verify() bool
Check if the value is valid
type FieldModelInt64 ¶
type FieldModelInt64 struct {
// contains filtered or unexported fields
}
Fast Binary Encoding Int64 field model
func NewFieldModelInt64 ¶
func NewFieldModelInt64(buffer *Buffer, offset int) *FieldModelInt64
Create a new Int64 field model
func (*FieldModelInt64) FBEExtra ¶
func (fm *FieldModelInt64) FBEExtra() int
Get the field extra size
func (*FieldModelInt64) FBEShift ¶
func (fm *FieldModelInt64) FBEShift(size int)
Shift the current field offset
func (*FieldModelInt64) FBEUnshift ¶
func (fm *FieldModelInt64) FBEUnshift(size int)
Unshift the current field offset
func (*FieldModelInt64) GetDefault ¶
func (fm *FieldModelInt64) GetDefault(defaults int64) (int64, error)
Get the value with provided default value
func (*FieldModelInt64) SetFBEOffset ¶
func (fm *FieldModelInt64) SetFBEOffset(value int)
Set the field offset
func (*FieldModelInt64) Verify ¶
func (fm *FieldModelInt64) Verify() bool
Check if the value is valid
type FieldModelInt8 ¶
type FieldModelInt8 struct {
// contains filtered or unexported fields
}
Fast Binary Encoding Int8 field model
func NewFieldModelInt8 ¶
func NewFieldModelInt8(buffer *Buffer, offset int) *FieldModelInt8
Create a new Int8 field model
func (*FieldModelInt8) FBEShift ¶
func (fm *FieldModelInt8) FBEShift(size int)
Shift the current field offset
func (*FieldModelInt8) FBEUnshift ¶
func (fm *FieldModelInt8) FBEUnshift(size int)
Unshift the current field offset
func (*FieldModelInt8) GetDefault ¶
func (fm *FieldModelInt8) GetDefault(defaults int8) (int8, error)
Get the value with provided default value
func (*FieldModelInt8) SetFBEOffset ¶
func (fm *FieldModelInt8) SetFBEOffset(value int)
Set the field offset
type FieldModelString ¶
type FieldModelString struct {
// contains filtered or unexported fields
}
Fast Binary Encoding string field model
func NewFieldModelString ¶
func NewFieldModelString(buffer *Buffer, offset int) *FieldModelString
Create a new string field model
func (*FieldModelString) FBEExtra ¶
func (fm *FieldModelString) FBEExtra() int
Get the field extra size
func (*FieldModelString) FBEOffset ¶
func (fm *FieldModelString) FBEOffset() int
Get the field offset
func (*FieldModelString) FBEShift ¶
func (fm *FieldModelString) FBEShift(size int)
Shift the current field offset
func (*FieldModelString) FBEUnshift ¶
func (fm *FieldModelString) FBEUnshift(size int)
Unshift the current field offset
func (*FieldModelString) Get ¶
func (fm *FieldModelString) Get() (string, error)
Get the string value
func (*FieldModelString) GetDefault ¶
func (fm *FieldModelString) GetDefault(defaults string) (string, error)
Get the string value with provided default value
func (*FieldModelString) Set ¶
func (fm *FieldModelString) Set(value string) error
Set the string value
func (*FieldModelString) SetFBEOffset ¶
func (fm *FieldModelString) SetFBEOffset(value int)
Set the field offset
func (*FieldModelString) Verify ¶
func (fm *FieldModelString) Verify() bool
Check if the string value is valid
type FieldModelTimestamp ¶
type FieldModelTimestamp struct {
// contains filtered or unexported fields
}
Fast Binary Encoding timestamp field model
func NewFieldModelTimestamp ¶
func NewFieldModelTimestamp(buffer *Buffer, offset int) *FieldModelTimestamp
Create a new timestamp field model
func (*FieldModelTimestamp) FBEExtra ¶
func (fm *FieldModelTimestamp) FBEExtra() int
Get the field extra size
func (*FieldModelTimestamp) FBEOffset ¶
func (fm *FieldModelTimestamp) FBEOffset() int
Get the field offset
func (*FieldModelTimestamp) FBEShift ¶
func (fm *FieldModelTimestamp) FBEShift(size int)
Shift the current field offset
func (*FieldModelTimestamp) FBESize ¶
func (fm *FieldModelTimestamp) FBESize() int
Get the field size
func (*FieldModelTimestamp) FBEUnshift ¶
func (fm *FieldModelTimestamp) FBEUnshift(size int)
Unshift the current field offset
func (*FieldModelTimestamp) Get ¶
func (fm *FieldModelTimestamp) Get() (Timestamp, error)
Get the timestamp value
func (*FieldModelTimestamp) GetDefault ¶
func (fm *FieldModelTimestamp) GetDefault(defaults Timestamp) (Timestamp, error)
Get the timestamp value with provided default value
func (*FieldModelTimestamp) Set ¶
func (fm *FieldModelTimestamp) Set(value Timestamp) error
Set the timestamp value
func (*FieldModelTimestamp) SetFBEOffset ¶
func (fm *FieldModelTimestamp) SetFBEOffset(value int)
Set the field offset
func (*FieldModelTimestamp) Verify ¶
func (fm *FieldModelTimestamp) Verify() bool
Check if the timestamp value is valid
type FieldModelUInt16 ¶
type FieldModelUInt16 struct {
// contains filtered or unexported fields
}
Fast Binary Encoding UInt16 field model
func NewFieldModelUInt16 ¶
func NewFieldModelUInt16(buffer *Buffer, offset int) *FieldModelUInt16
Create a new UInt16 field model
func (*FieldModelUInt16) FBEExtra ¶
func (fm *FieldModelUInt16) FBEExtra() int
Get the field extra size
func (*FieldModelUInt16) FBEOffset ¶
func (fm *FieldModelUInt16) FBEOffset() int
Get the field offset
func (*FieldModelUInt16) FBEShift ¶
func (fm *FieldModelUInt16) FBEShift(size int)
Shift the current field offset
func (*FieldModelUInt16) FBEUnshift ¶
func (fm *FieldModelUInt16) FBEUnshift(size int)
Unshift the current field offset
func (*FieldModelUInt16) GetDefault ¶
func (fm *FieldModelUInt16) GetDefault(defaults uint16) (uint16, error)
Get the value with provided default value
func (*FieldModelUInt16) SetFBEOffset ¶
func (fm *FieldModelUInt16) SetFBEOffset(value int)
Set the field offset
func (*FieldModelUInt16) Verify ¶
func (fm *FieldModelUInt16) Verify() bool
Check if the value is valid
type FieldModelUInt32 ¶
type FieldModelUInt32 struct {
// contains filtered or unexported fields
}
Fast Binary Encoding UInt32 field model
func NewFieldModelUInt32 ¶
func NewFieldModelUInt32(buffer *Buffer, offset int) *FieldModelUInt32
Create a new UInt32 field model
func (*FieldModelUInt32) FBEExtra ¶
func (fm *FieldModelUInt32) FBEExtra() int
Get the field extra size
func (*FieldModelUInt32) FBEOffset ¶
func (fm *FieldModelUInt32) FBEOffset() int
Get the field offset
func (*FieldModelUInt32) FBEShift ¶
func (fm *FieldModelUInt32) FBEShift(size int)
Shift the current field offset
func (*FieldModelUInt32) FBEUnshift ¶
func (fm *FieldModelUInt32) FBEUnshift(size int)
Unshift the current field offset
func (*FieldModelUInt32) GetDefault ¶
func (fm *FieldModelUInt32) GetDefault(defaults uint32) (uint32, error)
Get the value with provided default value
func (*FieldModelUInt32) SetFBEOffset ¶
func (fm *FieldModelUInt32) SetFBEOffset(value int)
Set the field offset
func (*FieldModelUInt32) Verify ¶
func (fm *FieldModelUInt32) Verify() bool
Check if the value is valid
type FieldModelUInt64 ¶
type FieldModelUInt64 struct {
// contains filtered or unexported fields
}
Fast Binary Encoding UInt64 field model
func NewFieldModelUInt64 ¶
func NewFieldModelUInt64(buffer *Buffer, offset int) *FieldModelUInt64
Create a new UInt64 field model
func (*FieldModelUInt64) FBEExtra ¶
func (fm *FieldModelUInt64) FBEExtra() int
Get the field extra size
func (*FieldModelUInt64) FBEOffset ¶
func (fm *FieldModelUInt64) FBEOffset() int
Get the field offset
func (*FieldModelUInt64) FBEShift ¶
func (fm *FieldModelUInt64) FBEShift(size int)
Shift the current field offset
func (*FieldModelUInt64) FBEUnshift ¶
func (fm *FieldModelUInt64) FBEUnshift(size int)
Unshift the current field offset
func (*FieldModelUInt64) GetDefault ¶
func (fm *FieldModelUInt64) GetDefault(defaults uint64) (uint64, error)
Get the value with provided default value
func (*FieldModelUInt64) SetFBEOffset ¶
func (fm *FieldModelUInt64) SetFBEOffset(value int)
Set the field offset
func (*FieldModelUInt64) Verify ¶
func (fm *FieldModelUInt64) Verify() bool
Check if the value is valid
type FieldModelUInt8 ¶
type FieldModelUInt8 struct {
// contains filtered or unexported fields
}
Fast Binary Encoding UInt8 field model
func NewFieldModelUInt8 ¶
func NewFieldModelUInt8(buffer *Buffer, offset int) *FieldModelUInt8
Create a new UInt8 field model
func (*FieldModelUInt8) FBEExtra ¶
func (fm *FieldModelUInt8) FBEExtra() int
Get the field extra size
func (*FieldModelUInt8) FBEShift ¶
func (fm *FieldModelUInt8) FBEShift(size int)
Shift the current field offset
func (*FieldModelUInt8) FBEUnshift ¶
func (fm *FieldModelUInt8) FBEUnshift(size int)
Unshift the current field offset
func (*FieldModelUInt8) GetDefault ¶
func (fm *FieldModelUInt8) GetDefault(defaults uint8) (uint8, error)
Get the value with provided default value
func (*FieldModelUInt8) SetFBEOffset ¶
func (fm *FieldModelUInt8) SetFBEOffset(value int)
Set the field offset
func (*FieldModelUInt8) Verify ¶
func (fm *FieldModelUInt8) Verify() bool
Check if the value is valid
type FieldModelUUID ¶
type FieldModelUUID struct {
// contains filtered or unexported fields
}
Fast Binary Encoding UUID field model
func NewFieldModelUUID ¶
func NewFieldModelUUID(buffer *Buffer, offset int) *FieldModelUUID
Create a new UUID field model
func (*FieldModelUUID) FBEShift ¶
func (fm *FieldModelUUID) FBEShift(size int)
Shift the current field offset
func (*FieldModelUUID) FBEUnshift ¶
func (fm *FieldModelUUID) FBEUnshift(size int)
Unshift the current field offset
func (*FieldModelUUID) GetDefault ¶
func (fm *FieldModelUUID) GetDefault(defaults UUID) (UUID, error)
Get the UUID value with provided default value
func (*FieldModelUUID) SetFBEOffset ¶
func (fm *FieldModelUUID) SetFBEOffset(value int)
Set the field offset
func (*FieldModelUUID) Verify ¶
func (fm *FieldModelUUID) Verify() bool
Check if the UUID value is valid
type FieldModelWChar ¶
type FieldModelWChar struct {
// contains filtered or unexported fields
}
Fast Binary Encoding WChar field model
func NewFieldModelWChar ¶
func NewFieldModelWChar(buffer *Buffer, offset int) *FieldModelWChar
Create a new WChar field model
func (*FieldModelWChar) FBEExtra ¶
func (fm *FieldModelWChar) FBEExtra() int
Get the field extra size
func (*FieldModelWChar) FBEShift ¶
func (fm *FieldModelWChar) FBEShift(size int)
Shift the current field offset
func (*FieldModelWChar) FBEUnshift ¶
func (fm *FieldModelWChar) FBEUnshift(size int)
Unshift the current field offset
func (*FieldModelWChar) GetDefault ¶
func (fm *FieldModelWChar) GetDefault(defaults rune) (rune, error)
Get the value with provided default value
func (*FieldModelWChar) SetFBEOffset ¶
func (fm *FieldModelWChar) SetFBEOffset(value int)
Set the field offset
func (*FieldModelWChar) Verify ¶
func (fm *FieldModelWChar) Verify() bool
Check if the value is valid
type FinalModelBool ¶
type FinalModelBool struct {
// contains filtered or unexported fields
}
Fast Binary Encoding Bool final model
func NewFinalModelBool ¶
func NewFinalModelBool(buffer *Buffer, offset int) *FinalModelBool
Create a new Bool final model
func (*FinalModelBool) FBEAllocationSize ¶
func (fm *FinalModelBool) FBEAllocationSize(value bool) int
Get the allocation size
func (*FinalModelBool) FBEShift ¶
func (fm *FinalModelBool) FBEShift(size int)
Shift the current final offset
func (*FinalModelBool) FBEUnshift ¶
func (fm *FinalModelBool) FBEUnshift(size int)
Unshift the current final offset
func (*FinalModelBool) SetFBEOffset ¶
func (fm *FinalModelBool) SetFBEOffset(value int)
Set the final offset
type FinalModelByte ¶
type FinalModelByte struct {
// contains filtered or unexported fields
}
Fast Binary Encoding Byte final model
func NewFinalModelByte ¶
func NewFinalModelByte(buffer *Buffer, offset int) *FinalModelByte
Create a new Byte final model
func (*FinalModelByte) FBEAllocationSize ¶
func (fm *FinalModelByte) FBEAllocationSize(value byte) int
Get the allocation size
func (*FinalModelByte) FBEShift ¶
func (fm *FinalModelByte) FBEShift(size int)
Shift the current final offset
func (*FinalModelByte) FBEUnshift ¶
func (fm *FinalModelByte) FBEUnshift(size int)
Unshift the current final offset
func (*FinalModelByte) SetFBEOffset ¶
func (fm *FinalModelByte) SetFBEOffset(value int)
Set the final offset
type FinalModelBytes ¶
type FinalModelBytes struct {
// contains filtered or unexported fields
}
Fast Binary Encoding bytes final model
func NewFinalModelBytes ¶
func NewFinalModelBytes(buffer *Buffer, offset int) *FinalModelBytes
Create a new bytes final model
func (*FinalModelBytes) FBEAllocationSize ¶
func (fm *FinalModelBytes) FBEAllocationSize(value []byte) int
Get the allocation size
func (*FinalModelBytes) FBEShift ¶
func (fm *FinalModelBytes) FBEShift(size int)
Shift the current final offset
func (*FinalModelBytes) FBEUnshift ¶
func (fm *FinalModelBytes) FBEUnshift(size int)
Unshift the current final offset
func (*FinalModelBytes) Get ¶
func (fm *FinalModelBytes) Get() ([]byte, int, error)
Get the bytes value
func (*FinalModelBytes) Set ¶
func (fm *FinalModelBytes) Set(value []byte) (int, error)
Set the bytes value
func (*FinalModelBytes) SetFBEOffset ¶
func (fm *FinalModelBytes) SetFBEOffset(value int)
Set the final offset
func (*FinalModelBytes) Verify ¶
func (fm *FinalModelBytes) Verify() int
Check if the bytes value is valid
type FinalModelChar ¶
type FinalModelChar struct {
// contains filtered or unexported fields
}
Fast Binary Encoding Char final model
func NewFinalModelChar ¶
func NewFinalModelChar(buffer *Buffer, offset int) *FinalModelChar
Create a new Char final model
func (*FinalModelChar) FBEAllocationSize ¶
func (fm *FinalModelChar) FBEAllocationSize(value rune) int
Get the allocation size
func (*FinalModelChar) FBEShift ¶
func (fm *FinalModelChar) FBEShift(size int)
Shift the current final offset
func (*FinalModelChar) FBEUnshift ¶
func (fm *FinalModelChar) FBEUnshift(size int)
Unshift the current final offset
func (*FinalModelChar) SetFBEOffset ¶
func (fm *FinalModelChar) SetFBEOffset(value int)
Set the final offset
type FinalModelDecimal ¶
type FinalModelDecimal struct {
// contains filtered or unexported fields
}
Fast Binary Encoding decimal final model
func NewFinalModelDecimal ¶
func NewFinalModelDecimal(buffer *Buffer, offset int) *FinalModelDecimal
Create a new decimal final model
func (*FinalModelDecimal) FBEAllocationSize ¶
func (fm *FinalModelDecimal) FBEAllocationSize(value Decimal) int
Get the allocation size
func (*FinalModelDecimal) FBEOffset ¶
func (fm *FinalModelDecimal) FBEOffset() int
Get the final offset
func (*FinalModelDecimal) FBEShift ¶
func (fm *FinalModelDecimal) FBEShift(size int)
Shift the current final offset
func (*FinalModelDecimal) FBEUnshift ¶
func (fm *FinalModelDecimal) FBEUnshift(size int)
Unshift the current final offset
func (*FinalModelDecimal) Get ¶
func (fm *FinalModelDecimal) Get() (Decimal, int, error)
Get the decimal value
func (*FinalModelDecimal) Set ¶
func (fm *FinalModelDecimal) Set(value Decimal) (int, error)
Set the decimal value
func (*FinalModelDecimal) SetFBEOffset ¶
func (fm *FinalModelDecimal) SetFBEOffset(value int)
Set the final offset
func (*FinalModelDecimal) Verify ¶
func (fm *FinalModelDecimal) Verify() int
Check if the decimal value is valid
type FinalModelDouble ¶
type FinalModelDouble struct {
// contains filtered or unexported fields
}
Fast Binary Encoding Double final model
func NewFinalModelDouble ¶
func NewFinalModelDouble(buffer *Buffer, offset int) *FinalModelDouble
Create a new Double final model
func (*FinalModelDouble) FBEAllocationSize ¶
func (fm *FinalModelDouble) FBEAllocationSize(value float64) int
Get the allocation size
func (*FinalModelDouble) FBEOffset ¶
func (fm *FinalModelDouble) FBEOffset() int
Get the final offset
func (*FinalModelDouble) FBEShift ¶
func (fm *FinalModelDouble) FBEShift(size int)
Shift the current final offset
func (*FinalModelDouble) FBEUnshift ¶
func (fm *FinalModelDouble) FBEUnshift(size int)
Unshift the current final offset
func (*FinalModelDouble) Get ¶
func (fm *FinalModelDouble) Get() (float64, int, error)
Get the value
func (*FinalModelDouble) Set ¶
func (fm *FinalModelDouble) Set(value float64) (int, error)
Set the value
func (*FinalModelDouble) SetFBEOffset ¶
func (fm *FinalModelDouble) SetFBEOffset(value int)
Set the final offset
func (*FinalModelDouble) Verify ¶
func (fm *FinalModelDouble) Verify() int
Check if the value is valid
type FinalModelFloat ¶
type FinalModelFloat struct {
// contains filtered or unexported fields
}
Fast Binary Encoding Float final model
func NewFinalModelFloat ¶
func NewFinalModelFloat(buffer *Buffer, offset int) *FinalModelFloat
Create a new Float final model
func (*FinalModelFloat) FBEAllocationSize ¶
func (fm *FinalModelFloat) FBEAllocationSize(value float32) int
Get the allocation size
func (*FinalModelFloat) FBEShift ¶
func (fm *FinalModelFloat) FBEShift(size int)
Shift the current final offset
func (*FinalModelFloat) FBEUnshift ¶
func (fm *FinalModelFloat) FBEUnshift(size int)
Unshift the current final offset
func (*FinalModelFloat) Set ¶
func (fm *FinalModelFloat) Set(value float32) (int, error)
Set the value
func (*FinalModelFloat) SetFBEOffset ¶
func (fm *FinalModelFloat) SetFBEOffset(value int)
Set the final offset
func (*FinalModelFloat) Verify ¶
func (fm *FinalModelFloat) Verify() int
Check if the value is valid
type FinalModelInt16 ¶
type FinalModelInt16 struct {
// contains filtered or unexported fields
}
Fast Binary Encoding Int16 final model
func NewFinalModelInt16 ¶
func NewFinalModelInt16(buffer *Buffer, offset int) *FinalModelInt16
Create a new Int16 final model
func (*FinalModelInt16) FBEAllocationSize ¶
func (fm *FinalModelInt16) FBEAllocationSize(value int16) int
Get the allocation size
func (*FinalModelInt16) FBEShift ¶
func (fm *FinalModelInt16) FBEShift(size int)
Shift the current final offset
func (*FinalModelInt16) FBEUnshift ¶
func (fm *FinalModelInt16) FBEUnshift(size int)
Unshift the current final offset
func (*FinalModelInt16) Set ¶
func (fm *FinalModelInt16) Set(value int16) (int, error)
Set the value
func (*FinalModelInt16) SetFBEOffset ¶
func (fm *FinalModelInt16) SetFBEOffset(value int)
Set the final offset
func (*FinalModelInt16) Verify ¶
func (fm *FinalModelInt16) Verify() int
Check if the value is valid
type FinalModelInt32 ¶
type FinalModelInt32 struct {
// contains filtered or unexported fields
}
Fast Binary Encoding Int32 final model
func NewFinalModelInt32 ¶
func NewFinalModelInt32(buffer *Buffer, offset int) *FinalModelInt32
Create a new Int32 final model
func (*FinalModelInt32) FBEAllocationSize ¶
func (fm *FinalModelInt32) FBEAllocationSize(value int32) int
Get the allocation size
func (*FinalModelInt32) FBEShift ¶
func (fm *FinalModelInt32) FBEShift(size int)
Shift the current final offset
func (*FinalModelInt32) FBEUnshift ¶
func (fm *FinalModelInt32) FBEUnshift(size int)
Unshift the current final offset
func (*FinalModelInt32) Set ¶
func (fm *FinalModelInt32) Set(value int32) (int, error)
Set the value
func (*FinalModelInt32) SetFBEOffset ¶
func (fm *FinalModelInt32) SetFBEOffset(value int)
Set the final offset
func (*FinalModelInt32) Verify ¶
func (fm *FinalModelInt32) Verify() int
Check if the value is valid
type FinalModelInt64 ¶
type FinalModelInt64 struct {
// contains filtered or unexported fields
}
Fast Binary Encoding Int64 final model
func NewFinalModelInt64 ¶
func NewFinalModelInt64(buffer *Buffer, offset int) *FinalModelInt64
Create a new Int64 final model
func (*FinalModelInt64) FBEAllocationSize ¶
func (fm *FinalModelInt64) FBEAllocationSize(value int64) int
Get the allocation size
func (*FinalModelInt64) FBEShift ¶
func (fm *FinalModelInt64) FBEShift(size int)
Shift the current final offset
func (*FinalModelInt64) FBEUnshift ¶
func (fm *FinalModelInt64) FBEUnshift(size int)
Unshift the current final offset
func (*FinalModelInt64) Set ¶
func (fm *FinalModelInt64) Set(value int64) (int, error)
Set the value
func (*FinalModelInt64) SetFBEOffset ¶
func (fm *FinalModelInt64) SetFBEOffset(value int)
Set the final offset
func (*FinalModelInt64) Verify ¶
func (fm *FinalModelInt64) Verify() int
Check if the value is valid
type FinalModelInt8 ¶
type FinalModelInt8 struct {
// contains filtered or unexported fields
}
Fast Binary Encoding Int8 final model
func NewFinalModelInt8 ¶
func NewFinalModelInt8(buffer *Buffer, offset int) *FinalModelInt8
Create a new Int8 final model
func (*FinalModelInt8) FBEAllocationSize ¶
func (fm *FinalModelInt8) FBEAllocationSize(value int8) int
Get the allocation size
func (*FinalModelInt8) FBEShift ¶
func (fm *FinalModelInt8) FBEShift(size int)
Shift the current final offset
func (*FinalModelInt8) FBEUnshift ¶
func (fm *FinalModelInt8) FBEUnshift(size int)
Unshift the current final offset
func (*FinalModelInt8) SetFBEOffset ¶
func (fm *FinalModelInt8) SetFBEOffset(value int)
Set the final offset
type FinalModelString ¶
type FinalModelString struct {
// contains filtered or unexported fields
}
Fast Binary Encoding string final model
func NewFinalModelString ¶
func NewFinalModelString(buffer *Buffer, offset int) *FinalModelString
Create a new string final model
func (*FinalModelString) FBEAllocationSize ¶
func (fm *FinalModelString) FBEAllocationSize(value string) int
Get the allocation size
func (*FinalModelString) FBEOffset ¶
func (fm *FinalModelString) FBEOffset() int
Get the final offset
func (*FinalModelString) FBEShift ¶
func (fm *FinalModelString) FBEShift(size int)
Shift the current final offset
func (*FinalModelString) FBEUnshift ¶
func (fm *FinalModelString) FBEUnshift(size int)
Unshift the current final offset
func (*FinalModelString) Get ¶
func (fm *FinalModelString) Get() (string, int, error)
Get the string value
func (*FinalModelString) Set ¶
func (fm *FinalModelString) Set(value string) (int, error)
Set the string value
func (*FinalModelString) SetFBEOffset ¶
func (fm *FinalModelString) SetFBEOffset(value int)
Set the final offset
func (*FinalModelString) Verify ¶
func (fm *FinalModelString) Verify() int
Check if the string value is valid
type FinalModelTimestamp ¶
type FinalModelTimestamp struct {
// contains filtered or unexported fields
}
Fast Binary Encoding timestamp final model
func NewFinalModelTimestamp ¶
func NewFinalModelTimestamp(buffer *Buffer, offset int) *FinalModelTimestamp
Create a new timestamp final model
func (*FinalModelTimestamp) FBEAllocationSize ¶
func (fm *FinalModelTimestamp) FBEAllocationSize(value Timestamp) int
Get the allocation size
func (*FinalModelTimestamp) FBEOffset ¶
func (fm *FinalModelTimestamp) FBEOffset() int
Get the final offset
func (*FinalModelTimestamp) FBEShift ¶
func (fm *FinalModelTimestamp) FBEShift(size int)
Shift the current final offset
func (*FinalModelTimestamp) FBESize ¶
func (fm *FinalModelTimestamp) FBESize() int
Get the final size
func (*FinalModelTimestamp) FBEUnshift ¶
func (fm *FinalModelTimestamp) FBEUnshift(size int)
Unshift the current final offset
func (*FinalModelTimestamp) Get ¶
func (fm *FinalModelTimestamp) Get() (Timestamp, int, error)
Get the timestamp value
func (*FinalModelTimestamp) Set ¶
func (fm *FinalModelTimestamp) Set(value Timestamp) (int, error)
Set the timestamp value
func (*FinalModelTimestamp) SetFBEOffset ¶
func (fm *FinalModelTimestamp) SetFBEOffset(value int)
Set the final offset
func (*FinalModelTimestamp) Verify ¶
func (fm *FinalModelTimestamp) Verify() int
Check if the timestamp value is valid
type FinalModelUInt16 ¶
type FinalModelUInt16 struct {
// contains filtered or unexported fields
}
Fast Binary Encoding UInt16 final model
func NewFinalModelUInt16 ¶
func NewFinalModelUInt16(buffer *Buffer, offset int) *FinalModelUInt16
Create a new UInt16 final model
func (*FinalModelUInt16) FBEAllocationSize ¶
func (fm *FinalModelUInt16) FBEAllocationSize(value uint16) int
Get the allocation size
func (*FinalModelUInt16) FBEOffset ¶
func (fm *FinalModelUInt16) FBEOffset() int
Get the final offset
func (*FinalModelUInt16) FBEShift ¶
func (fm *FinalModelUInt16) FBEShift(size int)
Shift the current final offset
func (*FinalModelUInt16) FBEUnshift ¶
func (fm *FinalModelUInt16) FBEUnshift(size int)
Unshift the current final offset
func (*FinalModelUInt16) Set ¶
func (fm *FinalModelUInt16) Set(value uint16) (int, error)
Set the value
func (*FinalModelUInt16) SetFBEOffset ¶
func (fm *FinalModelUInt16) SetFBEOffset(value int)
Set the final offset
func (*FinalModelUInt16) Verify ¶
func (fm *FinalModelUInt16) Verify() int
Check if the value is valid
type FinalModelUInt32 ¶
type FinalModelUInt32 struct {
// contains filtered or unexported fields
}
Fast Binary Encoding UInt32 final model
func NewFinalModelUInt32 ¶
func NewFinalModelUInt32(buffer *Buffer, offset int) *FinalModelUInt32
Create a new UInt32 final model
func (*FinalModelUInt32) FBEAllocationSize ¶
func (fm *FinalModelUInt32) FBEAllocationSize(value uint32) int
Get the allocation size
func (*FinalModelUInt32) FBEOffset ¶
func (fm *FinalModelUInt32) FBEOffset() int
Get the final offset
func (*FinalModelUInt32) FBEShift ¶
func (fm *FinalModelUInt32) FBEShift(size int)
Shift the current final offset
func (*FinalModelUInt32) FBEUnshift ¶
func (fm *FinalModelUInt32) FBEUnshift(size int)
Unshift the current final offset
func (*FinalModelUInt32) Set ¶
func (fm *FinalModelUInt32) Set(value uint32) (int, error)
Set the value
func (*FinalModelUInt32) SetFBEOffset ¶
func (fm *FinalModelUInt32) SetFBEOffset(value int)
Set the final offset
func (*FinalModelUInt32) Verify ¶
func (fm *FinalModelUInt32) Verify() int
Check if the value is valid
type FinalModelUInt64 ¶
type FinalModelUInt64 struct {
// contains filtered or unexported fields
}
Fast Binary Encoding UInt64 final model
func NewFinalModelUInt64 ¶
func NewFinalModelUInt64(buffer *Buffer, offset int) *FinalModelUInt64
Create a new UInt64 final model
func (*FinalModelUInt64) FBEAllocationSize ¶
func (fm *FinalModelUInt64) FBEAllocationSize(value uint64) int
Get the allocation size
func (*FinalModelUInt64) FBEOffset ¶
func (fm *FinalModelUInt64) FBEOffset() int
Get the final offset
func (*FinalModelUInt64) FBEShift ¶
func (fm *FinalModelUInt64) FBEShift(size int)
Shift the current final offset
func (*FinalModelUInt64) FBEUnshift ¶
func (fm *FinalModelUInt64) FBEUnshift(size int)
Unshift the current final offset
func (*FinalModelUInt64) Set ¶
func (fm *FinalModelUInt64) Set(value uint64) (int, error)
Set the value
func (*FinalModelUInt64) SetFBEOffset ¶
func (fm *FinalModelUInt64) SetFBEOffset(value int)
Set the final offset
func (*FinalModelUInt64) Verify ¶
func (fm *FinalModelUInt64) Verify() int
Check if the value is valid
type FinalModelUInt8 ¶
type FinalModelUInt8 struct {
// contains filtered or unexported fields
}
Fast Binary Encoding UInt8 final model
func NewFinalModelUInt8 ¶
func NewFinalModelUInt8(buffer *Buffer, offset int) *FinalModelUInt8
Create a new UInt8 final model
func (*FinalModelUInt8) FBEAllocationSize ¶
func (fm *FinalModelUInt8) FBEAllocationSize(value uint8) int
Get the allocation size
func (*FinalModelUInt8) FBEShift ¶
func (fm *FinalModelUInt8) FBEShift(size int)
Shift the current final offset
func (*FinalModelUInt8) FBEUnshift ¶
func (fm *FinalModelUInt8) FBEUnshift(size int)
Unshift the current final offset
func (*FinalModelUInt8) Set ¶
func (fm *FinalModelUInt8) Set(value uint8) (int, error)
Set the value
func (*FinalModelUInt8) SetFBEOffset ¶
func (fm *FinalModelUInt8) SetFBEOffset(value int)
Set the final offset
func (*FinalModelUInt8) Verify ¶
func (fm *FinalModelUInt8) Verify() int
Check if the value is valid
type FinalModelUUID ¶
type FinalModelUUID struct {
// contains filtered or unexported fields
}
Fast Binary Encoding UUID final model
func NewFinalModelUUID ¶
func NewFinalModelUUID(buffer *Buffer, offset int) *FinalModelUUID
Create a new UUID final model
func (*FinalModelUUID) FBEAllocationSize ¶
func (fm *FinalModelUUID) FBEAllocationSize(value UUID) int
Get the allocation size
func (*FinalModelUUID) FBEShift ¶
func (fm *FinalModelUUID) FBEShift(size int)
Shift the current final offset
func (*FinalModelUUID) FBEUnshift ¶
func (fm *FinalModelUUID) FBEUnshift(size int)
Unshift the current final offset
func (*FinalModelUUID) Set ¶
func (fm *FinalModelUUID) Set(value UUID) (int, error)
Set the UUID value
func (*FinalModelUUID) SetFBEOffset ¶
func (fm *FinalModelUUID) SetFBEOffset(value int)
Set the final offset
func (*FinalModelUUID) Verify ¶
func (fm *FinalModelUUID) Verify() int
Check if the UUID value is valid
type FinalModelWChar ¶
type FinalModelWChar struct {
// contains filtered or unexported fields
}
Fast Binary Encoding WChar final model
func NewFinalModelWChar ¶
func NewFinalModelWChar(buffer *Buffer, offset int) *FinalModelWChar
Create a new WChar final model
func (*FinalModelWChar) FBEAllocationSize ¶
func (fm *FinalModelWChar) FBEAllocationSize(value rune) int
Get the allocation size
func (*FinalModelWChar) FBEShift ¶
func (fm *FinalModelWChar) FBEShift(size int)
Shift the current final offset
func (*FinalModelWChar) FBEUnshift ¶
func (fm *FinalModelWChar) FBEUnshift(size int)
Unshift the current final offset
func (*FinalModelWChar) SetFBEOffset ¶
func (fm *FinalModelWChar) SetFBEOffset(value int)
Set the final offset
func (*FinalModelWChar) Verify ¶
func (fm *FinalModelWChar) Verify() int
Check if the value is valid
type OnReceiveFunc ¶
Receive message function
type OnReceiveLog ¶
type OnReceiveLog interface {
OnReceiveLog(message string)
}
Receive log message interface
type OnReceiveLogFunc ¶
type OnReceiveLogFunc func(message string)
Receive log message function
func (OnReceiveLogFunc) OnReceiveLog ¶
func (f OnReceiveLogFunc) OnReceiveLog(message string)
type OnSendFunc ¶
Send message function
type OnSendLogFunc ¶
type OnSendLogFunc func(message string)
Send log message function
func (OnSendLogFunc) OnSendLog ¶
func (f OnSendLogFunc) OnSendLog(message string)
type Receiver ¶
type Receiver struct { // Receive message handler HandlerOnReceive OnReceive // Receive log message handler HandlerOnReceiveLog OnReceiveLog // contains filtered or unexported fields }
Fast Binary Encoding base receiver
func NewReceiver ¶
Create a new base receiver
func (*Receiver) ReceiveBuffer ¶
Receive buffer
func (*Receiver) SetupHandlerOnReceive ¶
Setup receive message handler
func (*Receiver) SetupHandlerOnReceiveFunc ¶
func (r *Receiver) SetupHandlerOnReceiveFunc(function func(fbeType int, buffer []byte) (bool, error))
Setup receive message handler function
func (*Receiver) SetupHandlerOnReceiveLog ¶
func (r *Receiver) SetupHandlerOnReceiveLog(handler OnReceiveLog)
Setup receive log message handler
func (*Receiver) SetupHandlerOnReceiveLogFunc ¶
Setup receive log message handler function
func (*Receiver) SetupHandlers ¶
func (r *Receiver) SetupHandlers(handlers interface{})
Setup handlers
type Sender ¶
type Sender struct { // Send message handler HandlerOnSend OnSend // Send log message handler HandlerOnSendLog OnSendLog // contains filtered or unexported fields }
Fast Binary Encoding base sender
func (*Sender) SendSerialized ¶
Send serialized buffer. Direct call of the method requires knowledge about internals of FBE models serialization. Use it with care!
func (*Sender) SetupHandlerOnSend ¶
Setup send message handler
func (*Sender) SetupHandlerOnSendFunc ¶
Setup send message handler function
func (*Sender) SetupHandlerOnSendLog ¶
Setup send log message handler
func (*Sender) SetupHandlerOnSendLogFunc ¶
Setup send log message handler function
type Timestamp ¶
Timestamp struct
func OptionalTimestamp ¶
Create an optional timestamp
func ReadTimestamp ¶
Read timestamp from the buffer
func TimestampFromDate ¶
Create a new timestamp from the given date
func TimestampFromDateTime ¶
Create a new timestamp from the given date
func TimestampFromNanoseconds ¶
Create a new timestamp from the given nanoseconds
func (*Timestamp) MarshalJSON ¶
Convert timestamp to JSON
func (*Timestamp) UnmarshalJSON ¶
Convert JSON to timestamp
type UUID ¶
UUID struct
func UUIDFromBytes ¶
Create a new UUID from the given bytes buffer
func UUIDFromString ¶
Create a new UUID from the given string
func UUIDRandom ¶
func UUIDRandom() UUID
Create random UUID4 (randomly or pseudo-randomly generated version)
Source Files ¶
- Buffer.go
- Constants.go
- FieldModelBool.go
- FieldModelByte.go
- FieldModelBytes.go
- FieldModelChar.go
- FieldModelDecimal.go
- FieldModelDouble.go
- FieldModelFloat.go
- FieldModelInt16.go
- FieldModelInt32.go
- FieldModelInt64.go
- FieldModelInt8.go
- FieldModelString.go
- FieldModelTimestamp.go
- FieldModelUInt16.go
- FieldModelUInt32.go
- FieldModelUInt64.go
- FieldModelUInt8.go
- FieldModelUUID.go
- FieldModelWChar.go
- FinalModelBool.go
- FinalModelByte.go
- FinalModelBytes.go
- FinalModelChar.go
- FinalModelDecimal.go
- FinalModelDouble.go
- FinalModelFloat.go
- FinalModelInt16.go
- FinalModelInt32.go
- FinalModelInt64.go
- FinalModelInt8.go
- FinalModelString.go
- FinalModelTimestamp.go
- FinalModelUInt16.go
- FinalModelUInt32.go
- FinalModelUInt64.go
- FinalModelUInt8.go
- FinalModelUUID.go
- FinalModelWChar.go
- Json.go
- Optional.go
- Receiver.go
- Sender.go
- Types.go
- Version.go