Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeserilizeString ¶
func SerilizString ¶
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
Click to show internal directories.
Click to hide internal directories.