Documentation ¶
Index ¶
- Constants
- func Align32Bytes(b []byte) []byte
- func Align32BytesLittleEndian(b []byte) []byte
- func Bytes2string(b []byte) string
- func BytesToInt64(bys []byte) int64
- func CatchPanic(out *error)
- func Int32ToBytes(i int32) []byte
- func Int64ToBytes(i int64) []byte
- func String2bytes(str string) []byte
- func Uint64ToBytes(n uint64) []byte
- func UnifyError(e interface{}) error
- type AbiStruct
- type InputParam
- type OutputsParam
- type WasmAbi
Constants ¶
View Source
const (
ALIGN_LENGTH = 32
)
Variables ¶
This section is empty.
Functions ¶
func Align32Bytes ¶
func Bytes2string ¶
func BytesToInt64 ¶
func CatchPanic ¶
func CatchPanic(out *error)
CatchPanic catches any panic and writes the error to out.
func Int32ToBytes ¶
func Int64ToBytes ¶
func String2bytes ¶
func Uint64ToBytes ¶
Types ¶
type AbiStruct ¶
type AbiStruct struct { Name string `json:"name"` Inputs []InputParam `json:"inputs"` Outputs []OutputsParam `json:"outputs"` Constant string `json:"constant"` Type string `json:"type"` }
type InputParam ¶
type OutputsParam ¶
Click to show internal directories.
Click to hide internal directories.