Documentation ¶
Overview ¶
create by platon
Index ¶
- Variables
- func ArrBytesToHash(curByte []byte) []common.Hash
- func ArrBytesToNodeId(curByte []byte) []discover.NodeID
- func BytesTo32Bytes(curByte []byte) [32]byte
- func BytesTo64Bytes(curByte []byte) [64]byte
- func BytesToAddress(curByte []byte) common.Address
- func BytesToBigInt(curByte []byte) *big.Int
- func BytesToHash(curByte []byte) common.Hash
- func BytesToInt(curByte []byte) int
- func BytesToNodeId(curByte []byte) discover.NodeID
- func BytesToString(curByte []byte) string
- func BytesTouint32(b []byte) uint32
- func BytesTouint64(b []byte) uint64
- func HexToAddress(b []byte) common.Address
- func IntToBytes(curInt int) []byte
- func OriginBytes(curByte []byte) []byte
- func Uint32ToBytes(val uint32) []byte
- func Uint64ToBytes(val uint64) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = map[string]interface{}{ "string": BytesToString, "[]uint8": OriginBytes, "[64]uint8": BytesTo64Bytes, "[32]uint8": BytesTo32Bytes, "int": BytesToInt, "*big.Int": BytesToBigInt, "uint32": BytesTouint32, "uint64": BytesTouint64, "int32": common.BytesToInt32, "int64": common.BytesToInt64, "float32": common.BytesToFloat32, "float64": common.BytesToFloat64, "discover.NodeID": BytesToNodeId, "[]discover.NodeID": ArrBytesToNodeId, "common.Hash": BytesToHash, "[]common.Hash": ArrBytesToHash, "common.Address": BytesToAddress, }
Functions ¶
func ArrBytesToHash ¶
func ArrBytesToNodeId ¶
func BytesTo32Bytes ¶
func BytesTo64Bytes ¶
func BytesToAddress ¶
func BytesToBigInt ¶
func BytesToHash ¶
func BytesToInt ¶
func BytesToNodeId ¶
func BytesToString ¶
func BytesTouint32 ¶
func BytesTouint64 ¶
func HexToAddress ¶
func IntToBytes ¶
func OriginBytes ¶
func Uint32ToBytes ¶
func Uint64ToBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.