public class MyTypeDecoder extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
MAX_BYTE_LENGTH_FOR_HEX_STRING |
| 构造器和说明 |
|---|
MyTypeDecoder() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Bool |
decodeBool(String rawInput,
int offset)
decode solidity bool
|
static Type |
decodeBoolDynamicArray(String input,
int offset)
ecode solidity Bool[] dynamic array
|
static Type |
decodeBytes32(String input,
int offset)
decode solidity bytes32
|
static <T extends Type> |
decodeDynamicArray(String input,
int offset,
Class<T> type) |
static DynamicBytes |
decodeDynamicBytes(String input,
int offset)
decode solidity dynamic bytes
|
static Type |
decodeDynamicBytesArray(String input,
int offset) |
static Int |
decodeInt(String rawInput,
int offset)
decode solidity Int
|
static Type |
decodeIntDynamicArray(String input,
int offset)
decode solidity Int[] dynamic array
|
static <T extends AbstractNumericType> |
decodeNumeric(String input,
Class<T> type) |
static Type |
decodeStaticArray32(String input,
int offset)
decode solidity static array bytes32
|
static Uint |
decodeUint(String rawInput,
int offset)
decode solidity Uint
|
static Type |
decodeUintDynamicArray(String input,
int offset)
decode solidity Uint[] dynamic array
|
static Utf8String |
decodeUtf8String(String input,
int offset)
decode solidity utf8 string
|
static <T extends Type> |
getDataOffset(String input,
int offset,
Class<T> type) |
public static final int MAX_BYTE_LENGTH_FOR_HEX_STRING
public static Uint decodeUint(String rawInput, int offset)
rawInput - offset - public static Int decodeInt(String rawInput, int offset)
rawInput - offset - public static Bool decodeBool(String rawInput, int offset)
rawInput - offset - public static DynamicBytes decodeDynamicBytes(String input, int offset)
input - offset - public static Type decodeBytes32(String input, int offset)
input - offset - public static Utf8String decodeUtf8String(String input, int offset)
input - offset - public static Type decodeIntDynamicArray(String input, int offset)
input - offset - public static Type decodeUintDynamicArray(String input, int offset)
input - offset - public static Type decodeBoolDynamicArray(String input, int offset)
input - offset - public static Type decodeStaticArray32(String input, int offset)
input - offset - public static <T extends AbstractNumericType> T decodeNumeric(String input, Class<T> type)
public static <T extends Type> T decodeDynamicArray(String input, int offset, Class<T> type)
Copyright © 2022. All rights reserved.