public class ScaleCodecReader
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
static BoolReader |
BOOL |
static CompactUIntReader |
COMPACT_UINT |
static UByteReader |
UBYTE |
| 构造器和说明 |
|---|
ScaleCodecReader(byte[] source) |
| 限定符和类型 | 方法和说明 |
|---|---|
java.math.BigInteger |
decodeInt256() |
java.math.BigInteger |
decodeInteger(boolean signed,
int bytesSize) |
boolean |
hasMore(int size) |
boolean |
hasNext() |
<T> T |
read(ScaleReader<T> scaleReader)
Read complex value from the reader
|
boolean |
readBoolean() |
byte |
readByte() |
byte[] |
readByteArray() |
byte[] |
readByteArray(int len) |
int |
readCompact() |
java.lang.String |
readString()
Read string, encoded as UTF-8 bytes
|
int |
readUByte() |
public static final UByteReader UBYTE
public static final CompactUIntReader COMPACT_UINT
public static final BoolReader BOOL
public boolean hasNext()
public boolean hasMore(int size)
public byte readByte()
public <T> T read(ScaleReader<T> scaleReader)
T - resulting typescaleReader - reader implementationpublic int readUByte()
public int readCompact()
public boolean readBoolean()
public byte[] readByteArray()
public byte[] readByteArray(int len)
public java.math.BigInteger decodeInteger(boolean signed,
int bytesSize)
public java.math.BigInteger decodeInt256()
public java.lang.String readString()