Documentation ¶
Index ¶
- Variables
- func BoolToBytes(b bool) []byte
- func BytesToInt(b []byte) int
- func BytesToInt16(b []byte) int16
- func BytesToInt32(b []byte) int32
- func BytesToInt64(b []byte) int64
- func BytesToNodeInfo(curByte []byte) *syscontracts.NodeInfo
- func BytesToString(curByte []byte) string
- func BytesToUint16(b []byte) uint16
- func BytesToUint32(b []byte) uint32
- func BytesToUint64(b []byte) uint64
- func BytesToUpdateNode(curByte []byte) *syscontracts.UpdateNode
- func BytesToUserDescInfo(curByte []byte) *syscontracts.UserDescInfo
- func BytesToUserInfo(curByte []byte) *syscontracts.UserInfo
- func ConvertBytesTo(input []byte, targetType string) reflect.Value
- func HexBytesToAddress(curByte []byte) common.Address
- func Int32ToBytes(i int32) []byte
- func Int64ToBytes(i int64) []byte
- func Uint64ToBytes(n uint64) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var Bytes2X_CMD = map[string]interface{}{ "string": BytesToString, "uint16": BytesToUint16, "uint32": BytesToUint32, "uint64": BytesToUint64, "int": BytesToInt, "int16": BytesToInt16, "int32": BytesToInt32, "int64": BytesToInt64, "*syscontracts.NodeInfo": BytesToNodeInfo, "*syscontracts.UpdateNode": BytesToUpdateNode, "*syscontracts.UserInfo": BytesToUserInfo, "*syscontracts.UserDescInfo": BytesToUserDescInfo, "common.Address": HexBytesToAddress, }
Functions ¶
func BoolToBytes ¶
func BytesToInt ¶
func BytesToInt16 ¶
func BytesToInt32 ¶
func BytesToInt64 ¶
func BytesToNodeInfo ¶
func BytesToNodeInfo(curByte []byte) *syscontracts.NodeInfo
func BytesToString ¶
func BytesToUint16 ¶
func BytesToUint32 ¶
func BytesToUint64 ¶
func BytesToUpdateNode ¶
func BytesToUpdateNode(curByte []byte) *syscontracts.UpdateNode
func BytesToUserDescInfo ¶
func BytesToUserDescInfo(curByte []byte) *syscontracts.UserDescInfo
func BytesToUserInfo ¶
func BytesToUserInfo(curByte []byte) *syscontracts.UserInfo
func HexBytesToAddress ¶
func Int32ToBytes ¶
func Int64ToBytes ¶
func Uint64ToBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.