para_paser

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeI32     string = "int32"
	TypeI64     string = "int64"
	TypeF32     string = "float32"
	TypeF64     string = "float64"
	TypeAddress string = "address"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Arg

type Arg struct {
	Type string `json:"type" msg:"type"`
	Data []byte `json:"val"  msg:"val"`
}

func (*Arg) DecodeMsg

func (z *Arg) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*Arg) EncodeMsg

func (z *Arg) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*Arg) MarshalMsg

func (z *Arg) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Arg) Msgsize

func (z *Arg) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Arg) UnmarshalMsg

func (z *Arg) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DummyParaPaser

type DummyParaPaser struct {
}

func (*DummyParaPaser) ParseInputPara

func (dpp *DummyParaPaser) ParseInputPara(para []byte, base, max int) (string, []uint64, []byte)

type MsgpParaPaser

type MsgpParaPaser struct {
}

func (*MsgpParaPaser) ParseInputPara

func (mpp *MsgpParaPaser) ParseInputPara(para []byte, base, max int) (string, []uint64, []byte)

type WasmPara

type WasmPara struct {
	FuncName string `json:"func_name" msg:"funcName"`
	Args     []Arg  `json:"args"      msg:"args"`
}

func (*WasmPara) DecodeMsg

func (z *WasmPara) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*WasmPara) EncodeMsg

func (z *WasmPara) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*WasmPara) MarshalMsg

func (z *WasmPara) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*WasmPara) Msgsize

func (z *WasmPara) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*WasmPara) UnmarshalMsg

func (z *WasmPara) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

Jump to

Keyboard shortcuts

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