类 NulsByteBuffer
- java.lang.Object
-
- network.nerve.base.basic.NulsByteBuffer
-
public class NulsByteBuffer extends Object
- 作者:
- Eva
-
-
构造器概要
构造器 构造器 说明 NulsByteBuffer(byte[] bytes)NulsByteBuffer(byte[] bytes, int cursor)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intgetCursor()byte[]getPayload()booleanisFinished()BigIntegerreadBigInteger()booleanreadBoolean()byte[]readByLengthByte()bytereadByte()byte[]readBytes(int length)doublereadDouble()NulsHashreadHash()intreadInt32()longreadInt64()<T extends BaseNulsData>
TreadNulsData(T nulsData)shortreadShort()StringreadString()TransactionreadTransaction()intreadUint16()longreadUint32()longreadUint32LE()longreadUint48()shortreadUint8()longreadVarInt()longreadVarInt(int offset)voidresetCursor()voidsetCursor(int cursor)
-
-
-
方法详细资料
-
readUint32LE
public long readUint32LE() throws NulsException- 抛出:
NulsException
-
readUint8
public short readUint8() throws NulsException- 抛出:
NulsException
-
readUint16
public int readUint16() throws NulsException- 抛出:
NulsException
-
readInt32
public int readInt32() throws NulsException- 抛出:
NulsException
-
readUint32
public long readUint32() throws NulsException- 抛出:
NulsException
-
readUint48
public long readUint48()
-
readInt64
public long readInt64() throws NulsException- 抛出:
NulsException
-
readBigInteger
public BigInteger readBigInteger() throws NulsException
- 抛出:
NulsException
-
readVarInt
public long readVarInt() throws NulsException- 抛出:
NulsException
-
readVarInt
public long readVarInt(int offset) throws NulsException- 抛出:
NulsException
-
readByte
public byte readByte() throws NulsException- 抛出:
NulsException
-
readBytes
public byte[] readBytes(int length) throws NulsException- 抛出:
NulsException
-
readByLengthByte
public byte[] readByLengthByte() throws NulsException- 抛出:
NulsException
-
readBoolean
public boolean readBoolean() throws NulsException- 抛出:
NulsException
-
resetCursor
public void resetCursor()
-
readShort
public short readShort() throws NulsException- 抛出:
NulsException
-
readString
public String readString() throws NulsException
- 抛出:
NulsException
-
readDouble
public double readDouble() throws NulsException- 抛出:
NulsException
-
isFinished
public boolean isFinished()
-
getPayload
public byte[] getPayload()
-
readNulsData
public <T extends BaseNulsData> T readNulsData(T nulsData) throws NulsException
- 抛出:
NulsException
-
readTransaction
public Transaction readTransaction() throws NulsException
- 抛出:
NulsException
-
readHash
public NulsHash readHash() throws NulsException
- 抛出:
NulsException
-
getCursor
public int getCursor()
-
setCursor
public void setCursor(int cursor)
-
-