public class TypeDecoder
extends java.lang.Object
| 构造器和说明 |
|---|
TypeDecoder() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T extends Type> |
decode(byte[] input,
int offset,
TypeReference<T> type) |
static Address |
decodeAddress(byte[] input) |
static Bool |
decodeBool(byte[] rawInput,
int offset) |
static <T extends Bytes> |
decodeBytes(byte[] input,
java.lang.Class<T> type) |
static <T extends Bytes> |
decodeBytes(byte[] input,
int offset,
java.lang.Class<T> type) |
static <T extends Type> |
decodeDynamicArray(byte[] input,
int offset,
TypeReference<T> typeReference) |
static DynamicBytes |
decodeDynamicBytes(byte[] input,
int offset) |
static <T extends NumericType> |
decodeNumeric(byte[] inputByteArray,
java.lang.Class<T> type) |
static <T extends Type> |
decodeStaticArray(byte[] input,
int offset,
TypeReference<T> typeReference,
int length) |
static <T extends Type> |
decodeStaticStruct(byte[] input,
int offset,
TypeReference<T> typeReference) |
static int |
decodeUintAsInt(byte[] rawInput,
int offset) |
static Utf8String |
decodeUtf8String(byte[] input,
int offset) |
static <T extends Type> |
instantiateStaticArray(java.util.List<T> elements,
int length) |
public static <T extends Type> T decode(byte[] input, int offset, TypeReference<T> type) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionpublic static Address decodeAddress(byte[] input)
public static <T extends NumericType> T decodeNumeric(byte[] inputByteArray, java.lang.Class<T> type)
public static int decodeUintAsInt(byte[] rawInput,
int offset)
public static Bool decodeBool(byte[] rawInput, int offset)
public static <T extends Bytes> T decodeBytes(byte[] input, java.lang.Class<T> type)
public static <T extends Bytes> T decodeBytes(byte[] input, int offset, java.lang.Class<T> type)
public static DynamicBytes decodeDynamicBytes(byte[] input, int offset)
public static Utf8String decodeUtf8String(byte[] input, int offset)
public static <T extends Type> T decodeStaticArray(byte[] input, int offset, TypeReference<T> typeReference, int length)
public static <T extends Type> T instantiateStaticArray(java.util.List<T> elements, int length)
public static <T extends Type> T decodeDynamicArray(byte[] input, int offset, TypeReference<T> typeReference)
public static <T extends Type> T decodeStaticStruct(byte[] input, int offset, TypeReference<T> typeReference)