@Override public void parse(NulsByteBuffer buffer) throws NulsException { severPort = buffer.readUint16(); nodeIp = buffer.readString(); }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.setVal(byteBuffer.readString()); } }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.address = byteBuffer.readByLengthByte(); this.alias = byteBuffer.readString(); } }
@Override public void parse(NulsByteBuffer buffer) throws NulsException { magicNumber = buffer.readUint32(); port = buffer.readUint16(); ip = buffer.readString(); }
@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.sender = byteBuffer.readBytes(Address.ADDRESS_LENGTH); this.contractAddress = byteBuffer.readBytes(Address.ADDRESS_LENGTH); this.value = byteBuffer.readInt64(); this.gasLimit = byteBuffer.readInt64(); this.price = byteBuffer.readInt64(); this.methodName = byteBuffer.readString(); this.methodDesc = byteBuffer.readString(); this.argsCount = byteBuffer.readByte(); byte length = this.argsCount; this.args = new String[length][]; for(byte i = 0; i < length; i++) { byte argCount = byteBuffer.readByte(); if(argCount == 0) { args[i] = new String[0]; } else { String[] arg = new String[argCount]; for(byte k = 0; k < argCount; k++) { arg[k] = byteBuffer.readString(); } args[i] = arg; } } }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.sender = byteBuffer.readBytes(Address.ADDRESS_LENGTH); this.contractAddress = byteBuffer.readBytes(Address.ADDRESS_LENGTH); this.value = byteBuffer.readInt64(); this.codeLen = byteBuffer.readInt32(); this.code = byteBuffer.readByLengthByte(); this.gasLimit = byteBuffer.readInt64(); this.price = byteBuffer.readInt64(); this.argsCount = byteBuffer.readByte(); byte length = this.argsCount; this.args = new String[length][]; for(byte i = 0; i < length; i++) { byte argCount = byteBuffer.readByte(); if(argCount == 0) { args[i] = new String[0]; } else { String[] arg = new String[argCount]; for(byte k = 0; k < argCount; k++) { arg[k] = byteBuffer.readString(); } args[i] = arg; } } }