Documentation ¶
Index ¶
- Constants
- func ArrayLengthKey(symbol common.Hash) common.Hash
- func ArrayLocation(sym string, index int64, length int64)
- func BytesToF32(bytes []byte) float32
- func BytesToF64(bytes []byte) float64
- func BytesToI64(bytes []byte) uint64
- func Compress(src []byte) []byte
- func CompressWasmAndAbi(abijson, wasm, compiled []byte) []byte
- func CompressZlib(src []byte) []byte
- func DeCompress(src []byte) ([]byte, error)
- func DecodeContractCode(input []byte) (contract.WasmCode, []byte, error)
- func F32ToBytes(f32 float32) []byte
- func F64ToBytes(f64 float64) []byte
- func GetIndex(m *wasm.Module) (writeIndex int, readIndex int, gasIndex int)
- func GetU256(mem []byte) *big.Int
- func I32ToBytes(i32 uint32) []byte
- func I64ToBytes(i64 uint64) []byte
- func IsAddress(data []byte) (bool, []byte)
- func IsU256(data []byte) (bool, []byte)
- func MapLocation(sym, key []byte) common.Hash
- func ReadMagic(src []byte) (uint32, error)
- func Split(data []byte) (int, [][]byte)
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func ArrayLocation ¶
func BytesToF32 ¶
func BytesToF64 ¶
func BytesToI64 ¶
func CompressWasmAndAbi ¶
将abi和wasm压缩后进行rlp编码
func CompressZlib ¶
func DeCompress ¶
func F32ToBytes ¶
func F64ToBytes ¶
func I32ToBytes ¶
func I64ToBytes ¶
func MapLocation ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.