public class NulsByteBuffer extends Object
| 构造器和说明 |
|---|
NulsByteBuffer(byte[] bytes) |
NulsByteBuffer(byte[] bytes,
int cursor) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getCursor() |
byte[] |
getPayload() |
boolean |
isFinished() |
BigInteger |
readBigInteger() |
boolean |
readBoolean() |
byte[] |
readByLengthByte() |
byte |
readByte() |
byte[] |
readBytes(int length) |
double |
readDouble() |
NulsHash |
readHash() |
int |
readInt32() |
long |
readInt64() |
<T extends BaseNulsData> |
readNulsData(T nulsData) |
short |
readShort() |
String |
readString() |
Transaction |
readTransaction() |
int |
readUint16() |
long |
readUint32() |
long |
readUint32LE() |
long |
readUint48() |
short |
readUint8() |
long |
readVarInt() |
long |
readVarInt(int offset) |
void |
resetCursor() |
void |
setCursor(int cursor) |
public NulsByteBuffer(byte[] bytes)
public NulsByteBuffer(byte[] bytes,
int cursor)
public long readUint32LE()
throws NulsException
NulsExceptionpublic short readUint8()
throws NulsException
NulsExceptionpublic int readUint16()
throws NulsException
NulsExceptionpublic int readInt32()
throws NulsException
NulsExceptionpublic long readUint32()
throws NulsException
NulsExceptionpublic long readUint48()
public long readInt64()
throws NulsException
NulsExceptionpublic BigInteger readBigInteger() throws NulsException
NulsExceptionpublic long readVarInt()
throws NulsException
NulsExceptionpublic long readVarInt(int offset)
throws NulsException
NulsExceptionpublic byte readByte()
throws NulsException
NulsExceptionpublic byte[] readBytes(int length)
throws NulsException
NulsExceptionpublic byte[] readByLengthByte()
throws NulsException
NulsExceptionpublic boolean readBoolean()
throws NulsException
NulsExceptionpublic void resetCursor()
public short readShort()
throws NulsException
NulsExceptionpublic String readString() throws NulsException
NulsExceptionpublic double readDouble()
throws NulsException
NulsExceptionpublic boolean isFinished()
public byte[] getPayload()
public <T extends BaseNulsData> T readNulsData(T nulsData) throws NulsException
NulsExceptionpublic Transaction readTransaction() throws NulsException
NulsExceptionpublic NulsHash readHash() throws NulsException
NulsExceptionpublic int getCursor()
public void setCursor(int cursor)
Copyright © 2021. All rights reserved.