Documentation
¶
Overview ¶
Code generated by ndn tlv codegen DO NOT EDIT.
Index ¶
- type Inner
- type InnerEncoder
- type InnerParsingContext
- type InnerWire1
- type InnerWire1Encoder
- type InnerWire1ParsingContext
- type InnerWire2
- type InnerWire2Encoder
- type InnerWire2ParsingContext
- type IntArray
- type IntArrayEncoder
- type IntArrayParsingContext
- type NameArray
- type NameArrayEncoder
- type NameArrayParsingContext
- type Nested
- type NestedEncoder
- type NestedParsingContext
- type NestedSeq
- type NestedSeqEncoder
- type NestedSeqParsingContext
- type NestedWire
- type NestedWireEncoder
- type NestedWireParsingContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InnerEncoder ¶
type InnerEncoder struct {
// contains filtered or unexported fields
}
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()
type InnerWire1 ¶
type InnerWire1 struct {
//+field:wire
Wire1 enc.Wire `tlv:"0x01"`
//+field:natural:optional
Num optional.Optional[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.WireView, ignoreCritical bool) (*InnerWire1, error)
type InnerWire2 ¶
+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.WireView, ignoreCritical bool) (*InnerWire2, error)
type IntArray ¶
type IntArray struct {
//+field:sequence:uint64:natural
Words []uint64 `tlv:"0x01"`
}
func ParseIntArray ¶
type IntArrayEncoder ¶
type IntArrayEncoder struct {
Words_subencoder []struct {
}
// contains filtered or unexported fields
}
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()
type NameArray ¶
func ParseNameArray ¶
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()
type NestedEncoder ¶
type NestedEncoder struct {
Val_encoder InnerEncoder
// contains filtered or unexported fields
}
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()
type NestedSeq ¶
type NestedSeq struct {
//+field:sequence:*Inner:struct:Inner
Vals []*Inner `tlv:"0x03"`
}
func ParseNestedSeq ¶
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()
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.WireView, 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.WireView, ignoreCritical bool) (*NestedWire, error)
Click to show internal directories.
Click to hide internal directories.