public class MyWasmTypeDecoder extends Object
| 构造器和说明 |
|---|
MyWasmTypeDecoder() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Bool |
decodeBool(String rawInput,
int offset) |
static Type |
decodeBoolDynamicArray(String input,
int offset)
ecode solidity Bool[] dynamic array
|
static <T extends Type> |
decodeDynamicArrayForDynamicItemLength(String input,
int offset,
Class<T> type)
type不要填写 Bytes 以及 它的子类,因为 decodebytes 的 bytes里面没有长度的前缀,但是 wasm的返回前面始终有 长度 的前缀
|
static DynamicBytes |
decodeDynamicBytes(String input,
int offset) |
static Float32 |
decodeFloat32(String rawInput,
int offset) |
static Float64 |
decodeFloat64(String rawInput,
int offset) |
static Int128 |
decodeInt128(String rawInput,
int offset) |
static Int16 |
decodeInt16(String rawInput,
int offset) |
static Int32 |
decodeInt32(String rawInput,
int offset) |
static Int64 |
decodeInt64(String rawInput,
int offset) |
static Int8 |
decodeInt8(String rawInput,
int offset) |
static <T extends AbstractNumericType> |
decodeNumeric(String input,
Class<T> type) |
static <T extends Type,R extends Type> |
decodePair(String rawInput,
int offset,
Class<T> firstType,
Class<R> secondType) |
static <T extends Type> |
decodePairDynamicArray(String input,
int offset,
Class<T> type) |
static Uint128 |
decodeUint128(String rawInput,
int offset) |
static Uint16 |
decodeUint16(String rawInput,
int offset) |
static Uint32 |
decodeUint32(String rawInput,
int offset) |
static Uint64 |
decodeUint64(String rawInput,
int offset) |
static Uint8 |
decodeUint8(String rawInput,
int offset) |
static <T extends Type> |
decodeUintAndIntDynamicArray(String input,
int offset,
Class<T> type) |
static Utf8String |
decodeUtf8String(String input,
int offset) |
static WASMString |
decodeWasmString(String input,
int offset) |
static <T extends Type> |
getClassSingleByteLength(Class<T> type) |
static <T extends Type> |
getClassSingleByteLength(Class<T> type,
String input)
get single item length
|
static <T extends Type> |
getDataArrayOffset(String input,
int offset,
Class<T> type) |
static <T extends Type> |
getDataOffset(String input,
int offset,
Class<T> type) |
public static DynamicBytes decodeDynamicBytes(String input, int offset)
public static WASMString decodeWasmString(String input, int offset)
public static Utf8String decodeUtf8String(String input, int offset)
public static <T extends Type> Type decodeUintAndIntDynamicArray(String input, int offset, Class<T> type)
public static <T extends Type> Type decodePairDynamicArray(String input, int offset, Class<T> type)
public static Type decodeBoolDynamicArray(String input, int offset)
input - offset - public static <T extends Type> T decodeDynamicArrayForDynamicItemLength(String input, int offset, Class<T> type)
T - input - offset - type - public static <T extends Type> int getClassSingleByteLength(Class<T> type, String input)
T - type - class typeinput - raw data contains array item.public static <T extends AbstractNumericType> T decodeNumeric(String input, Class<T> type)
public static <T extends Type> DecodeNext getDataOffset(String input, int offset, Class<T> type)
public static <T extends Type> DecodeNext getDataArrayOffset(String input, int offset, Class<T> type)
Copyright © 2022. All rights reserved.