pkg1

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// IDMsgUint64 is the ID of MsgUint64 message.
	IDMsgUint64 uint64 = iota + 1
	// IDMsgUint32 is the ID of MsgUint32 message.
	IDMsgUint32
	// IDMsgUint16 is the ID of MsgUint16 message.
	IDMsgUint16
	// IDMsgUint8 is the ID of MsgUint8 message.
	IDMsgUint8
	// IDMsgInt64 is the ID of MsgInt64 message.
	IDMsgInt64
	// IDMsgInt32 is the ID of MsgInt32 message.
	IDMsgInt32
	// IDMsgInt16 is the ID of MsgInt16 message.
	IDMsgInt16
	// IDMsgInt8 is the ID of MsgInt8 message.
	IDMsgInt8
	// IDMsgBool3 is the ID of MsgBool3 message.
	IDMsgBool3
	// IDMsgBool10 is the ID of MsgBool10 message.
	IDMsgBool10
	// IDMsgFloat64 is the ID of MsgFloat64 message.
	IDMsgFloat64
	// IDMsgFloat32 is the ID of MsgFloat32 message.
	IDMsgFloat32
	// IDMsgString is the ID of MsgString message.
	IDMsgString
	// IDMsgArray is the ID of MsgArray message.
	IDMsgArray
	// IDMsgSlice is the ID of MsgSlice message.
	IDMsgSlice
	// IDMsgMap is the ID of MsgMap message.
	IDMsgMap
	// IDMsgMapString is the ID of MsgMapString message.
	IDMsgMapString
	// IDMsgStruct is the ID of MsgStruct message.
	IDMsgStruct
	// IDMsgStructAnonymous is the ID of MsgStructAnonymous message.
	IDMsgStructAnonymous
	// IDMsgArrayUint8 is the ID of MsgArrayUint8 message.
	IDMsgArrayUint8
	// IDMsgArrayInt8 is the ID of MsgArrayInt8 message.
	IDMsgArrayInt8
	// IDMsgArrayFloat32 is the ID of MsgArrayFloat32 message.
	IDMsgArrayFloat32
	// IDMsgArrayFloat64 is the ID of MsgArrayFloat64 message.
	IDMsgArrayFloat64
	// IDMsgSliceUint8 is the ID of MsgSliceUint8 message.
	IDMsgSliceUint8
	// IDMsgSliceInt8 is the ID of MsgSliceInt8 message.
	IDMsgSliceInt8
	// IDMsgSliceFloat32 is the ID of MsgSliceFloat32 message.
	IDMsgSliceFloat32
	// IDMsgSliceFloat64 is the ID of MsgSliceFloat64 message.
	IDMsgSliceFloat64
	// IDMsgMixed is the ID of MsgMixed message.
	IDMsgMixed
	// IDMsgUint64Custom is the ID of MsgUint64Custom message.
	IDMsgUint64Custom
	// IDMsgUint32Custom is the ID of MsgUint32Custom message.
	IDMsgUint32Custom
	// IDMsgUint16Custom is the ID of MsgUint16Custom message.
	IDMsgUint16Custom
	// IDMsgUint8Custom is the ID of MsgUint8Custom message.
	IDMsgUint8Custom
	// IDMsgInt64Custom is the ID of MsgInt64Custom message.
	IDMsgInt64Custom
	// IDMsgInt32Custom is the ID of MsgInt32Custom message.
	IDMsgInt32Custom
	// IDMsgInt16Custom is the ID of MsgInt16Custom message.
	IDMsgInt16Custom
	// IDMsgInt8Custom is the ID of MsgInt8Custom message.
	IDMsgInt8Custom
	// IDMsgBoolCustom is the ID of MsgBoolCustom message.
	IDMsgBoolCustom
	// IDMsgFloat64Custom is the ID of MsgFloat64Custom message.
	IDMsgFloat64Custom
	// IDMsgFloat32Custom is the ID of MsgFloat32Custom message.
	IDMsgFloat32Custom
	// IDMsgStringCustom is the ID of MsgStringCustom message.
	IDMsgStringCustom
	// IDMsgArrayCustom is the ID of MsgArrayCustom message.
	IDMsgArrayCustom
	// IDMsgSliceCustom is the ID of MsgSliceCustom message.
	IDMsgSliceCustom
	// IDMsgMapCustom is the ID of MsgMapCustom message.
	IDMsgMapCustom
	// IDMsgArrayUint8Custom is the ID of MsgArrayUint8Custom message.
	IDMsgArrayUint8Custom
	// IDMsgArrayUint8Custom2 is the ID of MsgArrayUint8Custom2 message.
	IDMsgArrayUint8Custom2
	// IDMsgArrayInt8Custom is the ID of MsgArrayInt8Custom message.
	IDMsgArrayInt8Custom
	// IDMsgArrayFloat32Custom is the ID of MsgArrayFloat32Custom message.
	IDMsgArrayFloat32Custom
	// IDMsgArrayFloat64Custom is the ID of MsgArrayFloat64Custom message.
	IDMsgArrayFloat64Custom
	// IDMsgSliceUint8Custom is the ID of MsgSliceUint8Custom message.
	IDMsgSliceUint8Custom
	// IDMsgSliceUint8Custom2 is the ID of MsgSliceUint8Custom2 message.
	IDMsgSliceUint8Custom2
	// IDMsgSliceInt8Custom is the ID of MsgSliceInt8Custom message.
	IDMsgSliceInt8Custom
	// IDMsgSliceFloat32Custom is the ID of MsgSliceFloat32Custom message.
	IDMsgSliceFloat32Custom
	// IDMsgSliceFloat64Custom is the ID of MsgSliceFloat64Custom message.
	IDMsgSliceFloat64Custom
	// IDMsgMixedCustom is the ID of MsgMixedCustom message.
	IDMsgMixedCustom
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Marshaller added in v0.7.5

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

Marshaller marshals and unmarshals messages.

func NewMarshaller added in v0.7.5

func NewMarshaller(capacity uint64) Marshaller

NewMarshaller creates marshaller.

func (Marshaller) Marshal added in v0.7.5

func (m Marshaller) Marshal(msg proton.Marshallable, buf []byte) (retID, retSize uint64, retErr error)

Marshal marshals message.

func (Marshaller) Unmarshal added in v0.7.5

func (m Marshaller) Unmarshal(id uint64, buf []byte) (retMsg any, retSize uint64, retErr error)

Unmarshal unmarshals message.

type MsgArray

type MsgArray struct {
	Value [3]bool
}

MsgArray is used in tests.

func (*MsgArray) Marshal added in v0.7.5

func (m *MsgArray) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgArray) Size added in v0.7.5

func (m *MsgArray) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgArray) Unmarshal added in v0.7.5

func (m *MsgArray) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgArrayCustom

type MsgArrayCustom struct {
	Value custom.Array
}

MsgArrayCustom is used in tests.

func (*MsgArrayCustom) Marshal added in v0.7.5

func (m *MsgArrayCustom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgArrayCustom) Size added in v0.7.5

func (m *MsgArrayCustom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgArrayCustom) Unmarshal added in v0.7.5

func (m *MsgArrayCustom) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgArrayFloat32

type MsgArrayFloat32 struct {
	Value [5]float32
}

MsgArrayFloat32 is used in tests.

func (*MsgArrayFloat32) Marshal added in v0.7.5

func (m *MsgArrayFloat32) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgArrayFloat32) Size added in v0.7.5

func (m *MsgArrayFloat32) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgArrayFloat32) Unmarshal added in v0.7.5

func (m *MsgArrayFloat32) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgArrayFloat32Custom

type MsgArrayFloat32Custom struct {
	Value custom.ArrayFloat32
}

MsgArrayFloat32Custom is used in tests.

func (*MsgArrayFloat32Custom) Marshal added in v0.7.5

func (m *MsgArrayFloat32Custom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgArrayFloat32Custom) Size added in v0.7.5

func (m *MsgArrayFloat32Custom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgArrayFloat32Custom) Unmarshal added in v0.7.5

func (m *MsgArrayFloat32Custom) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgArrayFloat64

type MsgArrayFloat64 struct {
	Value [5]float64
}

MsgArrayFloat64 is used in tests.

func (*MsgArrayFloat64) Marshal added in v0.7.5

func (m *MsgArrayFloat64) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgArrayFloat64) Size added in v0.7.5

func (m *MsgArrayFloat64) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgArrayFloat64) Unmarshal added in v0.7.5

func (m *MsgArrayFloat64) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgArrayFloat64Custom

type MsgArrayFloat64Custom struct {
	Value custom.ArrayFloat64
}

MsgArrayFloat64Custom is used in tests.

func (*MsgArrayFloat64Custom) Marshal added in v0.7.5

func (m *MsgArrayFloat64Custom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgArrayFloat64Custom) Size added in v0.7.5

func (m *MsgArrayFloat64Custom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgArrayFloat64Custom) Unmarshal added in v0.7.5

func (m *MsgArrayFloat64Custom) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgArrayInt8

type MsgArrayInt8 struct {
	Value [5]int8
}

MsgArrayInt8 is used in tests.

func (*MsgArrayInt8) Marshal added in v0.7.5

func (m *MsgArrayInt8) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgArrayInt8) Size added in v0.7.5

func (m *MsgArrayInt8) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgArrayInt8) Unmarshal added in v0.7.5

func (m *MsgArrayInt8) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgArrayInt8Custom

type MsgArrayInt8Custom struct {
	Value custom.ArrayInt8
}

MsgArrayInt8Custom is used in tests.

func (*MsgArrayInt8Custom) Marshal added in v0.7.5

func (m *MsgArrayInt8Custom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgArrayInt8Custom) Size added in v0.7.5

func (m *MsgArrayInt8Custom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgArrayInt8Custom) Unmarshal added in v0.7.5

func (m *MsgArrayInt8Custom) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgArrayUint8

type MsgArrayUint8 struct {
	Value [5]uint8
}

MsgArrayUint8 is used in tests.

func (*MsgArrayUint8) Marshal added in v0.7.5

func (m *MsgArrayUint8) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgArrayUint8) Size added in v0.7.5

func (m *MsgArrayUint8) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgArrayUint8) Unmarshal added in v0.7.5

func (m *MsgArrayUint8) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgArrayUint8Custom

type MsgArrayUint8Custom struct {
	Value custom.ArrayUint8
}

MsgArrayUint8Custom is used in tests.

func (*MsgArrayUint8Custom) Marshal added in v0.7.5

func (m *MsgArrayUint8Custom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgArrayUint8Custom) Size added in v0.7.5

func (m *MsgArrayUint8Custom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgArrayUint8Custom) Unmarshal added in v0.7.5

func (m *MsgArrayUint8Custom) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgArrayUint8Custom2

type MsgArrayUint8Custom2 struct {
	Value custom.ArrayCustomUint8
}

MsgArrayUint8Custom2 is used in tests.

func (*MsgArrayUint8Custom2) Marshal added in v0.7.5

func (m *MsgArrayUint8Custom2) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgArrayUint8Custom2) Size added in v0.7.5

func (m *MsgArrayUint8Custom2) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgArrayUint8Custom2) Unmarshal added in v0.7.5

func (m *MsgArrayUint8Custom2) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgBool3

type MsgBool3 struct {
	Value1 bool
	Value2 bool
	Value3 bool
}

MsgBool3 is used in tests.

func (*MsgBool3) Marshal added in v0.7.5

func (m *MsgBool3) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgBool3) Size added in v0.7.5

func (m *MsgBool3) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgBool3) Unmarshal added in v0.7.5

func (m *MsgBool3) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgBool10

type MsgBool10 struct {
	Value1  bool
	Value2  bool
	Value3  bool
	Value4  bool
	Value5  bool
	Value6  bool
	Value7  bool
	Value8  bool
	Value9  bool
	Value10 bool
}

MsgBool10 is used in tests.

func (*MsgBool10) Marshal added in v0.7.5

func (m *MsgBool10) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgBool10) Size added in v0.7.5

func (m *MsgBool10) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgBool10) Unmarshal added in v0.7.5

func (m *MsgBool10) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgBoolCustom

type MsgBoolCustom struct {
	Value custom.Bool
}

MsgBoolCustom is used in tests.

func (*MsgBoolCustom) Marshal added in v0.7.5

func (m *MsgBoolCustom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgBoolCustom) Size added in v0.7.5

func (m *MsgBoolCustom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgBoolCustom) Unmarshal added in v0.7.5

func (m *MsgBoolCustom) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgFloat32

type MsgFloat32 struct {
	Value float32
}

MsgFloat32 is used in tests.

func (*MsgFloat32) Marshal added in v0.7.5

func (m *MsgFloat32) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgFloat32) Size added in v0.7.5

func (m *MsgFloat32) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgFloat32) Unmarshal added in v0.7.5

func (m *MsgFloat32) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgFloat32Custom

type MsgFloat32Custom struct {
	Value custom.Float32
}

MsgFloat32Custom is used in tests.

func (*MsgFloat32Custom) Marshal added in v0.7.5

func (m *MsgFloat32Custom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgFloat32Custom) Size added in v0.7.5

func (m *MsgFloat32Custom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgFloat32Custom) Unmarshal added in v0.7.5

func (m *MsgFloat32Custom) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgFloat64

type MsgFloat64 struct {
	Value float64
}

MsgFloat64 is used in tests.

func (*MsgFloat64) Marshal added in v0.7.5

func (m *MsgFloat64) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgFloat64) Size added in v0.7.5

func (m *MsgFloat64) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgFloat64) Unmarshal added in v0.7.5

func (m *MsgFloat64) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgFloat64Custom

type MsgFloat64Custom struct {
	Value custom.Float64
}

MsgFloat64Custom is used in tests.

func (*MsgFloat64Custom) Marshal added in v0.7.5

func (m *MsgFloat64Custom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgFloat64Custom) Size added in v0.7.5

func (m *MsgFloat64Custom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgFloat64Custom) Unmarshal added in v0.7.5

func (m *MsgFloat64Custom) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgInt8

type MsgInt8 struct {
	Value int8
}

MsgInt8 is used in tests.

func (*MsgInt8) Marshal added in v0.7.5

func (m *MsgInt8) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgInt8) Size added in v0.7.5

func (m *MsgInt8) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgInt8) Unmarshal added in v0.7.5

func (m *MsgInt8) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgInt8Custom

type MsgInt8Custom struct {
	Value custom.Int8
}

MsgInt8Custom is used in tests.

func (*MsgInt8Custom) Marshal added in v0.7.5

func (m *MsgInt8Custom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgInt8Custom) Size added in v0.7.5

func (m *MsgInt8Custom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgInt8Custom) Unmarshal added in v0.7.5

func (m *MsgInt8Custom) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgInt16

type MsgInt16 struct {
	Value int16
}

MsgInt16 is used in tests.

func (*MsgInt16) Marshal added in v0.7.5

func (m *MsgInt16) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgInt16) Size added in v0.7.5

func (m *MsgInt16) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgInt16) Unmarshal added in v0.7.5

func (m *MsgInt16) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgInt16Custom

type MsgInt16Custom struct {
	Value custom.Int16
}

MsgInt16Custom is used in tests.

func (*MsgInt16Custom) Marshal added in v0.7.5

func (m *MsgInt16Custom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgInt16Custom) Size added in v0.7.5

func (m *MsgInt16Custom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgInt16Custom) Unmarshal added in v0.7.5

func (m *MsgInt16Custom) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgInt32

type MsgInt32 struct {
	Value int32
}

MsgInt32 is used in tests.

func (*MsgInt32) Marshal added in v0.7.5

func (m *MsgInt32) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgInt32) Size added in v0.7.5

func (m *MsgInt32) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgInt32) Unmarshal added in v0.7.5

func (m *MsgInt32) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgInt32Custom

type MsgInt32Custom struct {
	Value custom.Int32
}

MsgInt32Custom is used in tests.

func (*MsgInt32Custom) Marshal added in v0.7.5

func (m *MsgInt32Custom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgInt32Custom) Size added in v0.7.5

func (m *MsgInt32Custom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgInt32Custom) Unmarshal added in v0.7.5

func (m *MsgInt32Custom) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgInt64

type MsgInt64 struct {
	Value int64
}

MsgInt64 is used in tests.

func (*MsgInt64) Marshal added in v0.7.5

func (m *MsgInt64) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgInt64) Size added in v0.7.5

func (m *MsgInt64) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgInt64) Unmarshal added in v0.7.5

func (m *MsgInt64) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgInt64Custom

type MsgInt64Custom struct {
	Value custom.Int64
}

MsgInt64Custom is used in tests.

func (*MsgInt64Custom) Marshal added in v0.7.5

func (m *MsgInt64Custom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgInt64Custom) Size added in v0.7.5

func (m *MsgInt64Custom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgInt64Custom) Unmarshal added in v0.7.5

func (m *MsgInt64Custom) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgMap

type MsgMap struct {
	Value map[uint64]uint64
}

MsgMap is used in tests.

func (*MsgMap) Marshal added in v0.7.5

func (m *MsgMap) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgMap) Size added in v0.7.5

func (m *MsgMap) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgMap) Unmarshal added in v0.7.5

func (m *MsgMap) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgMapCustom

type MsgMapCustom struct {
	Value custom.Map
}

MsgMapCustom is used in tests.

func (*MsgMapCustom) Marshal added in v0.7.5

func (m *MsgMapCustom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgMapCustom) Size added in v0.7.5

func (m *MsgMapCustom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgMapCustom) Unmarshal added in v0.7.5

func (m *MsgMapCustom) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgMapString added in v0.2.1

type MsgMapString struct {
	Value map[string]string
}

MsgMapString is used in tests.

func (*MsgMapString) Marshal added in v0.7.5

func (m *MsgMapString) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgMapString) Size added in v0.7.5

func (m *MsgMapString) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgMapString) Unmarshal added in v0.7.5

func (m *MsgMapString) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgMixed

type MsgMixed struct {
	Value1 map[string]spkg1.SubMsg
	Value2 map[uint8][]string
	Value3 [][32]uint16
	Value4 [12]map[int8]float32
	Value5 [][3][]map[int16][2]int64
	Value6 bool
	Value7 bool
	Value8 string
}

MsgMixed is used in tests.

func (*MsgMixed) Marshal added in v0.7.5

func (m *MsgMixed) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgMixed) Size added in v0.7.5

func (m *MsgMixed) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgMixed) Unmarshal added in v0.7.5

func (m *MsgMixed) Unmarshal(
	b []byte,
	massString *mass.Mass[string],
	massA32BUint16 *mass.Mass[[32]uint16],
	massA3BABMapAInt16BA2BInt64 *mass.Mass[[3][]map[int16][2]int64],
	massMapAInt16BA2BInt64 *mass.Mass[map[int16][2]int64],
) uint64

Unmarshal unmarshals the structure.

type MsgMixedCustom

type MsgMixedCustom struct {
	Value custom.Mixed
}

MsgMixedCustom is used in tests.

func (*MsgMixedCustom) Marshal added in v0.7.5

func (m *MsgMixedCustom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgMixedCustom) Size added in v0.7.5

func (m *MsgMixedCustom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgMixedCustom) Unmarshal added in v0.7.5

func (m *MsgMixedCustom) Unmarshal(
	b []byte,
	massA3BABMapAInt16BCustomArray *mass.Mass[[3][]map[int16]custom.Array],
	massMapAInt16BCustomArray *mass.Mass[map[int16]custom.Array],
) uint64

Unmarshal unmarshals the structure.

type MsgSlice

type MsgSlice struct {
	Value []bool
}

MsgSlice is used in tests.

func (*MsgSlice) Marshal added in v0.7.5

func (m *MsgSlice) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgSlice) Size added in v0.7.5

func (m *MsgSlice) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgSlice) Unmarshal added in v0.7.5

func (m *MsgSlice) Unmarshal(
	b []byte,
	massBool *mass.Mass[bool],
) uint64

Unmarshal unmarshals the structure.

type MsgSliceCustom

type MsgSliceCustom struct {
	Value custom.Slice
}

MsgSliceCustom is used in tests.

func (*MsgSliceCustom) Marshal added in v0.7.5

func (m *MsgSliceCustom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgSliceCustom) Size added in v0.7.5

func (m *MsgSliceCustom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgSliceCustom) Unmarshal added in v0.7.5

func (m *MsgSliceCustom) Unmarshal(
	b []byte,
	massCustomUint64 *mass.Mass[custom.Uint64],
) uint64

Unmarshal unmarshals the structure.

type MsgSliceFloat32

type MsgSliceFloat32 struct {
	Value []float32
}

MsgSliceFloat32 is used in tests.

func (*MsgSliceFloat32) Marshal added in v0.7.5

func (m *MsgSliceFloat32) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgSliceFloat32) Size added in v0.7.5

func (m *MsgSliceFloat32) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgSliceFloat32) Unmarshal added in v0.7.5

func (m *MsgSliceFloat32) Unmarshal(
	b []byte,
	massFloat32 *mass.Mass[float32],
) uint64

Unmarshal unmarshals the structure.

type MsgSliceFloat32Custom

type MsgSliceFloat32Custom struct {
	Value custom.SliceFloat32
}

MsgSliceFloat32Custom is used in tests.

func (*MsgSliceFloat32Custom) Marshal added in v0.7.5

func (m *MsgSliceFloat32Custom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgSliceFloat32Custom) Size added in v0.7.5

func (m *MsgSliceFloat32Custom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgSliceFloat32Custom) Unmarshal added in v0.7.5

func (m *MsgSliceFloat32Custom) Unmarshal(
	b []byte,
	massCustomFloat32 *mass.Mass[custom.Float32],
) uint64

Unmarshal unmarshals the structure.

type MsgSliceFloat64

type MsgSliceFloat64 struct {
	Value []float64
}

MsgSliceFloat64 is used in tests.

func (*MsgSliceFloat64) Marshal added in v0.7.5

func (m *MsgSliceFloat64) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgSliceFloat64) Size added in v0.7.5

func (m *MsgSliceFloat64) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgSliceFloat64) Unmarshal added in v0.7.5

func (m *MsgSliceFloat64) Unmarshal(
	b []byte,
	massFloat64 *mass.Mass[float64],
) uint64

Unmarshal unmarshals the structure.

type MsgSliceFloat64Custom

type MsgSliceFloat64Custom struct {
	Value custom.SliceFloat64
}

MsgSliceFloat64Custom is used in tests.

func (*MsgSliceFloat64Custom) Marshal added in v0.7.5

func (m *MsgSliceFloat64Custom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgSliceFloat64Custom) Size added in v0.7.5

func (m *MsgSliceFloat64Custom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgSliceFloat64Custom) Unmarshal added in v0.7.5

func (m *MsgSliceFloat64Custom) Unmarshal(
	b []byte,
	massCustomFloat64 *mass.Mass[custom.Float64],
) uint64

Unmarshal unmarshals the structure.

type MsgSliceInt8

type MsgSliceInt8 struct {
	Value []int8
}

MsgSliceInt8 is used in tests.

func (*MsgSliceInt8) Marshal added in v0.7.5

func (m *MsgSliceInt8) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgSliceInt8) Size added in v0.7.5

func (m *MsgSliceInt8) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgSliceInt8) Unmarshal added in v0.7.5

func (m *MsgSliceInt8) Unmarshal(
	b []byte,
	massInt8 *mass.Mass[int8],
) uint64

Unmarshal unmarshals the structure.

type MsgSliceInt8Custom

type MsgSliceInt8Custom struct {
	Value custom.SliceInt8
}

MsgSliceInt8Custom is used in tests.

func (*MsgSliceInt8Custom) Marshal added in v0.7.5

func (m *MsgSliceInt8Custom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgSliceInt8Custom) Size added in v0.7.5

func (m *MsgSliceInt8Custom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgSliceInt8Custom) Unmarshal added in v0.7.5

func (m *MsgSliceInt8Custom) Unmarshal(
	b []byte,
	massCustomInt8 *mass.Mass[custom.Int8],
) uint64

Unmarshal unmarshals the structure.

type MsgSliceUint8

type MsgSliceUint8 struct {
	Value []uint8
}

MsgSliceUint8 is used in tests.

func (*MsgSliceUint8) Marshal added in v0.7.5

func (m *MsgSliceUint8) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgSliceUint8) Size added in v0.7.5

func (m *MsgSliceUint8) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgSliceUint8) Unmarshal added in v0.7.5

func (m *MsgSliceUint8) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgSliceUint8Custom

type MsgSliceUint8Custom struct {
	Value custom.SliceUint8
}

MsgSliceUint8Custom is used in tests.

func (*MsgSliceUint8Custom) Marshal added in v0.7.5

func (m *MsgSliceUint8Custom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgSliceUint8Custom) Size added in v0.7.5

func (m *MsgSliceUint8Custom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgSliceUint8Custom) Unmarshal added in v0.7.5

func (m *MsgSliceUint8Custom) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgSliceUint8Custom2

type MsgSliceUint8Custom2 struct {
	Value custom.SliceCustomUint8
}

MsgSliceUint8Custom2 is used in tests.

func (*MsgSliceUint8Custom2) Marshal added in v0.7.5

func (m *MsgSliceUint8Custom2) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgSliceUint8Custom2) Size added in v0.7.5

func (m *MsgSliceUint8Custom2) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgSliceUint8Custom2) Unmarshal added in v0.7.5

func (m *MsgSliceUint8Custom2) Unmarshal(
	b []byte,
	massCustomUint8 *mass.Mass[custom.Uint8],
) uint64

Unmarshal unmarshals the structure.

type MsgString

type MsgString struct {
	Value string
}

MsgString is used in tests.

func (*MsgString) Marshal added in v0.7.5

func (m *MsgString) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgString) Size added in v0.7.5

func (m *MsgString) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgString) Unmarshal added in v0.7.5

func (m *MsgString) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgStringCustom

type MsgStringCustom struct {
	Value custom.String
}

MsgStringCustom is used in tests.

func (*MsgStringCustom) Marshal added in v0.7.5

func (m *MsgStringCustom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgStringCustom) Size added in v0.7.5

func (m *MsgStringCustom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgStringCustom) Unmarshal added in v0.7.5

func (m *MsgStringCustom) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgStruct

type MsgStruct struct {
	Value1 SubMsg
	Value2 pkg2.SubMsg
}

MsgStruct is used in tests.

func (*MsgStruct) Marshal added in v0.7.5

func (m *MsgStruct) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgStruct) Size added in v0.7.5

func (m *MsgStruct) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgStruct) Unmarshal added in v0.7.5

func (m *MsgStruct) Unmarshal(
	b []byte,
	massFloat32 *mass.Mass[float32],
	massSpkgSubMsg *mass.Mass[spkg.SubMsg],
	massSpkg1SubMsg *mass.Mass[spkg1.SubMsg],
) uint64

Unmarshal unmarshals the structure.

type MsgStructAnonymous

type MsgStructAnonymous struct {
	SubMsg
	Value2 pkg2.SubMsg
}

MsgStructAnonymous is used in tests.

func (*MsgStructAnonymous) Marshal added in v0.7.5

func (m *MsgStructAnonymous) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgStructAnonymous) Size added in v0.7.5

func (m *MsgStructAnonymous) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgStructAnonymous) Unmarshal added in v0.7.5

func (m *MsgStructAnonymous) Unmarshal(
	b []byte,
	massFloat32 *mass.Mass[float32],
	massSpkgSubMsg *mass.Mass[spkg.SubMsg],
	massSpkg1SubMsg *mass.Mass[spkg1.SubMsg],
) uint64

Unmarshal unmarshals the structure.

type MsgUint8

type MsgUint8 struct {
	Value uint8
}

MsgUint8 is used in tests.

func (*MsgUint8) Marshal added in v0.7.5

func (m *MsgUint8) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgUint8) Size added in v0.7.5

func (m *MsgUint8) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgUint8) Unmarshal added in v0.7.5

func (m *MsgUint8) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgUint8Custom

type MsgUint8Custom struct {
	Value custom.Uint8
}

MsgUint8Custom is used in tests.

func (*MsgUint8Custom) Marshal added in v0.7.5

func (m *MsgUint8Custom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgUint8Custom) Size added in v0.7.5

func (m *MsgUint8Custom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgUint8Custom) Unmarshal added in v0.7.5

func (m *MsgUint8Custom) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgUint16

type MsgUint16 struct {
	Value uint16
}

MsgUint16 is used in tests.

func (*MsgUint16) Marshal added in v0.7.5

func (m *MsgUint16) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgUint16) Size added in v0.7.5

func (m *MsgUint16) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgUint16) Unmarshal added in v0.7.5

func (m *MsgUint16) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgUint16Custom

type MsgUint16Custom struct {
	Value custom.Uint16
}

MsgUint16Custom is used in tests.

func (*MsgUint16Custom) Marshal added in v0.7.5

func (m *MsgUint16Custom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgUint16Custom) Size added in v0.7.5

func (m *MsgUint16Custom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgUint16Custom) Unmarshal added in v0.7.5

func (m *MsgUint16Custom) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgUint32

type MsgUint32 struct {
	Value uint32
}

MsgUint32 is used in tests.

func (*MsgUint32) Marshal added in v0.7.5

func (m *MsgUint32) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgUint32) Size added in v0.7.5

func (m *MsgUint32) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgUint32) Unmarshal added in v0.7.5

func (m *MsgUint32) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgUint32Custom

type MsgUint32Custom struct {
	Value custom.Uint32
}

MsgUint32Custom is used in tests.

func (*MsgUint32Custom) Marshal added in v0.7.5

func (m *MsgUint32Custom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgUint32Custom) Size added in v0.7.5

func (m *MsgUint32Custom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgUint32Custom) Unmarshal added in v0.7.5

func (m *MsgUint32Custom) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgUint64

type MsgUint64 struct {
	Value uint64
}

MsgUint64 is used in tests.

func (*MsgUint64) Marshal added in v0.7.5

func (m *MsgUint64) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgUint64) Size added in v0.7.5

func (m *MsgUint64) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgUint64) Unmarshal added in v0.7.5

func (m *MsgUint64) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type MsgUint64Custom

type MsgUint64Custom struct {
	Value custom.Uint64
}

MsgUint64Custom is used in tests.

func (*MsgUint64Custom) Marshal added in v0.7.5

func (m *MsgUint64Custom) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*MsgUint64Custom) Size added in v0.7.5

func (m *MsgUint64Custom) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*MsgUint64Custom) Unmarshal added in v0.7.5

func (m *MsgUint64Custom) Unmarshal(
	b []byte,
) uint64

Unmarshal unmarshals the structure.

type SubMsg

type SubMsg struct {
	Value1 []float32
	Value2 []spkg1.SubMsg
	Value3 []spkg2.SubMsg
}

SubMsg is used in tests.

func (*SubMsg) Marshal added in v0.7.5

func (m *SubMsg) Marshal(b []byte) uint64

Marshal marshals the structure.

func (*SubMsg) Size added in v0.7.5

func (m *SubMsg) Size() uint64

Size computes the required size of the buffer for marshaling the structure.

func (*SubMsg) Unmarshal added in v0.7.5

func (m *SubMsg) Unmarshal(
	b []byte,
	massFloat32 *mass.Mass[float32],
	massSpkgSubMsg *mass.Mass[spkg.SubMsg],
	massSpkg1SubMsg *mass.Mass[spkg1.SubMsg],
) uint64

Unmarshal unmarshals the structure.

Directories

Path Synopsis
generator command

Jump to

Keyboard shortcuts

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