gen_map

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 4 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 IntStructMap

type IntStructMap struct {
	//+field:map:uint64:natural:0x87:*Inner:struct:Inner
	Params map[uint64]*Inner `tlv:"0x85"`
}

func ParseIntStructMap

func ParseIntStructMap(reader enc.ParseReader, ignoreCritical bool) (*IntStructMap, error)

func (*IntStructMap) Bytes

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

func (*IntStructMap) Encode

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

type IntStructMapEncoder

type IntStructMapEncoder struct {
	Params_valencoder map[uint64]*struct {
		Params_v_encoder InnerEncoder
	}
	// contains filtered or unexported fields
}

func (*IntStructMapEncoder) Encode

func (encoder *IntStructMapEncoder) Encode(value *IntStructMap) enc.Wire

func (*IntStructMapEncoder) EncodeInto

func (encoder *IntStructMapEncoder) EncodeInto(value *IntStructMap, buf []byte)

func (*IntStructMapEncoder) Init

func (encoder *IntStructMapEncoder) Init(value *IntStructMap)

type IntStructMapParsingContext

type IntStructMapParsingContext struct {
	Params_v_context InnerParsingContext
}

func (*IntStructMapParsingContext) Init

func (context *IntStructMapParsingContext) Init()

func (*IntStructMapParsingContext) Parse

func (context *IntStructMapParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*IntStructMap, error)

type StringMap

type StringMap struct {
	//+field:map:string:string:0x87:[]byte:binary
	Params map[string][]byte `tlv:"0x85"`
}

func ParseStringMap

func ParseStringMap(reader enc.ParseReader, ignoreCritical bool) (*StringMap, error)

func (*StringMap) Bytes

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

func (*StringMap) Encode

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

type StringMapEncoder

type StringMapEncoder struct {
	Params_valencoder map[string]*struct {
	}
	// contains filtered or unexported fields
}

func (*StringMapEncoder) Encode

func (encoder *StringMapEncoder) Encode(value *StringMap) enc.Wire

func (*StringMapEncoder) EncodeInto

func (encoder *StringMapEncoder) EncodeInto(value *StringMap, buf []byte)

func (*StringMapEncoder) Init

func (encoder *StringMapEncoder) Init(value *StringMap)

type StringMapParsingContext

type StringMapParsingContext struct {
}

func (*StringMapParsingContext) Init

func (context *StringMapParsingContext) Init()

func (*StringMapParsingContext) Parse

func (context *StringMapParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*StringMap, error)

Jump to

Keyboard shortcuts

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