gen_composition

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Generated by the generator, DO NOT modify manually

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inner

type Inner struct {
	//+field:natural
	Num uint64 `tlv:"0x01"`
}

func ParseInner

func ParseInner(reader enc.ParseReader, ignoreCritical bool) (*Inner, error)

func (*Inner) Bytes

func (value *Inner) Bytes() []byte

func (*Inner) Encode

func (value *Inner) Encode() enc.Wire

type InnerEncoder

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

func (*InnerEncoder) Encode

func (encoder *InnerEncoder) Encode(value *Inner) enc.Wire

func (*InnerEncoder) EncodeInto

func (encoder *InnerEncoder) EncodeInto(value *Inner, buf []byte)

func (*InnerEncoder) Init

func (encoder *InnerEncoder) Init(value *Inner)

type InnerParsingContext

type InnerParsingContext struct {
}

func (*InnerParsingContext) Init

func (context *InnerParsingContext) Init()

func (*InnerParsingContext) Parse

func (context *InnerParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*Inner, error)

type InnerWire1

type InnerWire1 struct {
	//+field:wire
	Wire1 enc.Wire `tlv:"0x01"`
	//+field:natural:optional
	Num *uint64 `tlv:"0x02"`
}

+tlv-model:nocopy,private

type InnerWire1Encoder

type InnerWire1Encoder struct {
	Wire1_length uint
	// contains filtered or unexported fields
}

func (*InnerWire1Encoder) Encode

func (encoder *InnerWire1Encoder) Encode(value *InnerWire1) enc.Wire

func (*InnerWire1Encoder) EncodeInto

func (encoder *InnerWire1Encoder) EncodeInto(value *InnerWire1, wire enc.Wire)

func (*InnerWire1Encoder) Init

func (encoder *InnerWire1Encoder) Init(value *InnerWire1)

type InnerWire1ParsingContext

type InnerWire1ParsingContext struct {
}

func (*InnerWire1ParsingContext) Init

func (context *InnerWire1ParsingContext) Init()

func (*InnerWire1ParsingContext) Parse

func (context *InnerWire1ParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*InnerWire1, error)

type InnerWire2

type InnerWire2 struct {
	//+field:wire
	Wire2 enc.Wire `tlv:"0x03"`
}

+tlv-model:nocopy,private

type InnerWire2Encoder

type InnerWire2Encoder struct {
	Wire2_length uint
	// contains filtered or unexported fields
}

func (*InnerWire2Encoder) Encode

func (encoder *InnerWire2Encoder) Encode(value *InnerWire2) enc.Wire

func (*InnerWire2Encoder) EncodeInto

func (encoder *InnerWire2Encoder) EncodeInto(value *InnerWire2, wire enc.Wire)

func (*InnerWire2Encoder) Init

func (encoder *InnerWire2Encoder) Init(value *InnerWire2)

type InnerWire2ParsingContext

type InnerWire2ParsingContext struct {
}

func (*InnerWire2ParsingContext) Init

func (context *InnerWire2ParsingContext) Init()

func (*InnerWire2ParsingContext) Parse

func (context *InnerWire2ParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*InnerWire2, error)

type IntArray

type IntArray struct {
	//+field:sequence:uint64:natural
	Words []uint64 `tlv:"0x01"`
}

func ParseIntArray

func ParseIntArray(reader enc.ParseReader, ignoreCritical bool) (*IntArray, error)

func (*IntArray) Bytes

func (value *IntArray) Bytes() []byte

func (*IntArray) Encode

func (value *IntArray) Encode() enc.Wire

type IntArrayEncoder

type IntArrayEncoder struct {
	Words_subencoder []struct {
	}
	// contains filtered or unexported fields
}

func (*IntArrayEncoder) Encode

func (encoder *IntArrayEncoder) Encode(value *IntArray) enc.Wire

func (*IntArrayEncoder) EncodeInto

func (encoder *IntArrayEncoder) EncodeInto(value *IntArray, buf []byte)

func (*IntArrayEncoder) Init

func (encoder *IntArrayEncoder) Init(value *IntArray)

type IntArrayParsingContext

type IntArrayParsingContext struct {
}

func (*IntArrayParsingContext) Init

func (context *IntArrayParsingContext) Init()

func (*IntArrayParsingContext) Parse

func (context *IntArrayParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*IntArray, error)

type NameArray

type NameArray struct {
	//+field:sequence:enc.Name:name
	Names []enc.Name `tlv:"0x07"`
}

func ParseNameArray

func ParseNameArray(reader enc.ParseReader, ignoreCritical bool) (*NameArray, error)

func (*NameArray) Bytes

func (value *NameArray) Bytes() []byte

func (*NameArray) Encode

func (value *NameArray) Encode() enc.Wire

type NameArrayEncoder

type NameArrayEncoder struct {
	Names_subencoder []struct {
		Names_length uint
	}
	// contains filtered or unexported fields
}

func (*NameArrayEncoder) Encode

func (encoder *NameArrayEncoder) Encode(value *NameArray) enc.Wire

func (*NameArrayEncoder) EncodeInto

func (encoder *NameArrayEncoder) EncodeInto(value *NameArray, buf []byte)

func (*NameArrayEncoder) Init

func (encoder *NameArrayEncoder) Init(value *NameArray)

type NameArrayParsingContext

type NameArrayParsingContext struct {
}

func (*NameArrayParsingContext) Init

func (context *NameArrayParsingContext) Init()

func (*NameArrayParsingContext) Parse

func (context *NameArrayParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*NameArray, error)

type Nested

type Nested struct {
	//+field:struct:Inner
	Val *Inner `tlv:"0x02"`
}

func ParseNested

func ParseNested(reader enc.ParseReader, ignoreCritical bool) (*Nested, error)

func (*Nested) Bytes

func (value *Nested) Bytes() []byte

func (*Nested) Encode

func (value *Nested) Encode() enc.Wire

type NestedEncoder

type NestedEncoder struct {
	Val_encoder InnerEncoder
	// contains filtered or unexported fields
}

func (*NestedEncoder) Encode

func (encoder *NestedEncoder) Encode(value *Nested) enc.Wire

func (*NestedEncoder) EncodeInto

func (encoder *NestedEncoder) EncodeInto(value *Nested, buf []byte)

func (*NestedEncoder) Init

func (encoder *NestedEncoder) Init(value *Nested)

type NestedParsingContext

type NestedParsingContext struct {
	Val_context InnerParsingContext
}

func (*NestedParsingContext) Init

func (context *NestedParsingContext) Init()

func (*NestedParsingContext) Parse

func (context *NestedParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*Nested, error)

type NestedSeq

type NestedSeq struct {
	//+field:sequence:*Inner:struct:Inner
	Vals []*Inner `tlv:"0x03"`
}

func ParseNestedSeq

func ParseNestedSeq(reader enc.ParseReader, ignoreCritical bool) (*NestedSeq, error)

func (*NestedSeq) Bytes

func (value *NestedSeq) Bytes() []byte

func (*NestedSeq) Encode

func (value *NestedSeq) Encode() enc.Wire

type NestedSeqEncoder

type NestedSeqEncoder struct {
	Vals_subencoder []struct {
		Vals_encoder InnerEncoder
	}
	// contains filtered or unexported fields
}

func (*NestedSeqEncoder) Encode

func (encoder *NestedSeqEncoder) Encode(value *NestedSeq) enc.Wire

func (*NestedSeqEncoder) EncodeInto

func (encoder *NestedSeqEncoder) EncodeInto(value *NestedSeq, buf []byte)

func (*NestedSeqEncoder) Init

func (encoder *NestedSeqEncoder) Init(value *NestedSeq)

type NestedSeqParsingContext

type NestedSeqParsingContext struct {
	Vals_context InnerParsingContext
}

func (*NestedSeqParsingContext) Init

func (context *NestedSeqParsingContext) Init()

func (*NestedSeqParsingContext) Parse

func (context *NestedSeqParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*NestedSeq, error)

type NestedWire

type NestedWire struct {
	//+field:struct:InnerWire1:nocopy
	W1 *InnerWire1 `tlv:"0x04"`
	//+field:natural
	N uint64 `tlv:"0x05"`
	//+field:struct:InnerWire2:nocopy
	W2 *InnerWire2 `tlv:"0x06"`
}

+tlv-model:nocopy

func ParseNestedWire

func ParseNestedWire(reader enc.ParseReader, ignoreCritical bool) (*NestedWire, error)

func (*NestedWire) Bytes

func (value *NestedWire) Bytes() []byte

func (*NestedWire) Encode

func (value *NestedWire) Encode() enc.Wire

type NestedWireEncoder

type NestedWireEncoder struct {
	W1_encoder InnerWire1Encoder

	W2_encoder InnerWire2Encoder
	// contains filtered or unexported fields
}

func (*NestedWireEncoder) Encode

func (encoder *NestedWireEncoder) Encode(value *NestedWire) enc.Wire

func (*NestedWireEncoder) EncodeInto

func (encoder *NestedWireEncoder) EncodeInto(value *NestedWire, wire enc.Wire)

func (*NestedWireEncoder) Init

func (encoder *NestedWireEncoder) Init(value *NestedWire)

type NestedWireParsingContext

type NestedWireParsingContext struct {
	W1_context InnerWire1ParsingContext

	W2_context InnerWire2ParsingContext
}

func (*NestedWireParsingContext) Init

func (context *NestedWireParsingContext) Init()

func (*NestedWireParsingContext) Parse

func (context *NestedWireParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*NestedWire, error)

Jump to

Keyboard shortcuts

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