@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.owner = byteBuffer.readByLengthByte(); this.na = Na.valueOf(byteBuffer.readInt64()); this.lockTime = byteBuffer.readUint48(); }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.roundIndex = byteBuffer.readUint32(); this.consensusMemberCount = byteBuffer.readUint16(); this.roundStartTime = byteBuffer.readUint48(); this.packingIndexOfRound = byteBuffer.readUint16(); } }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.txHash = byteBuffer.readHash(); this.blockHeight = byteBuffer.readUint32(); this.time = byteBuffer.readUint48(); this.addresses = byteBuffer.readByLengthByte(); this.txType = byteBuffer.readUint16(); this.status = byteBuffer.readByte(); }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.txHash = byteBuffer.readHash(); this.blockHeight = byteBuffer.readUint32(); this.time = byteBuffer.readUint48(); this.addresses = byteBuffer.readByLengthByte(); this.txType = byteBuffer.readUint16(); this.status = byteBuffer.readByte(); }
@Override public void parse(NulsByteBuffer buffer) throws NulsException { handshakeType = buffer.readUint16(); severPort = buffer.readUint16(); bestBlockHeight = buffer.readUint32(); bestBlockHash = buffer.readHash(); networkTime = buffer.readUint48(); nodeIp = buffer.readString(); version = buffer.readString(); }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.type = byteBuffer.readByte(); this.address = byteBuffer.readBytes(Address.ADDRESS_LENGTH); this.time = byteBuffer.readUint48(); this.height = byteBuffer.readVarInt(); this.roundIndex = byteBuffer.readVarInt(); this.reasonCode = byteBuffer.readShort(); this.evidence = byteBuffer.readByLengthByte(); }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { type = byteBuffer.readUint16(); time = byteBuffer.readUint48(); this.remark = byteBuffer.readByLengthByte(); txData = this.parseTxData(byteBuffer); this.coinData = byteBuffer.readNulsData(new CoinData()); /*try { hash = NulsDigestData.calcDigestData(this.serializeForHash()); } catch (IOException e) { Log.error(e); }*/ transactionSignature = byteBuffer.readByLengthByte(); }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.deposit = Na.valueOf(byteBuffer.readInt64()); this.agentHash = byteBuffer.readHash(); this.address = byteBuffer.readBytes(Address.ADDRESS_LENGTH); this.time = byteBuffer.readUint48(); this.txHash = byteBuffer.readHash(); this.blockHeight = byteBuffer.readVarInt(); this.delHeight = byteBuffer.readVarInt(); }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.hash = byteBuffer.readHash(); this.agentAddress = byteBuffer.readBytes(Address.ADDRESS_LENGTH); this.packingAddress = byteBuffer.readBytes(Address.ADDRESS_LENGTH); this.rewardAddress = byteBuffer.readBytes(Address.ADDRESS_LENGTH); this.deposit = Na.valueOf(byteBuffer.readInt64()); this.commissionRate = byteBuffer.readDouble(); this.time = byteBuffer.readUint48(); this.blockHeight = byteBuffer.readVarInt(); this.delHeight = byteBuffer.readVarInt(); }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.roundIndex = byteBuffer.readUint32(); this.consensusMemberCount = byteBuffer.readUint16(); this.roundStartTime = byteBuffer.readUint48(); this.packingIndexOfRound = byteBuffer.readUint16(); if (!byteBuffer.isFinished()) { this.mainVersion = byteBuffer.readInt32(); this.currentVersion = byteBuffer.readInt32(); this.percent = byteBuffer.readUint16(); this.delay = byteBuffer.readUint32(); this.stateRoot = byteBuffer.readByLengthByte(); } }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.preHash = byteBuffer.readHash(); this.merkleHash = byteBuffer.readHash(); this.time = byteBuffer.readUint48(); this.height = byteBuffer.readUint32(); this.txCount = byteBuffer.readUint32(); this.extend = byteBuffer.readByLengthByte(); try { this.hash = NulsDigestData.calcDigestData(this.serialize()); } catch (IOException e) { Log.error(e); } this.blockSignature = byteBuffer.readNulsData(new BlockSignature()); // } }