bcwasmutil

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeserilizeString

func DeserilizeString(data []byte) string

func SerilizString

func SerilizString(str string) []byte

Types

type UnsignedInt

type UnsignedInt int32

unsigned_int is defined in bcwasm lib, which is used for DataStream serilize. When serilize a string to bytes, first pack the length of the string, then pack contents of the string. The length of the string is serlized with unsigned_int's methods defined below.

func BytesToUnsignedInt

func BytesToUnsignedInt(data []byte) (val UnsignedInt, pos int)

func (UnsignedInt) Bytes

func (i UnsignedInt) Bytes() []byte

func (UnsignedInt) Int32

func (i UnsignedInt) Int32() int32

func (UnsignedInt) Uint32

func (i UnsignedInt) Uint32() uint32

Jump to

Keyboard shortcuts

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