public byte[] getBytes()
{
DynamicArray rpcStructure = new DynamicArray();
byte [] totalMsgBlocks= NumericalUtils.uint16ToByteArrayShort((UInt16)addedMsgBlocks);
byte [] currentCounter = getRpcBytes();
rpcStructure.append(currentCounter);
rpcStructure.append(totalMsgBlocks);
rpcStructure.append(din.getBytes());
// Increment RPC Counter
incrementRpcCounter(addedMsgBlocks);
return rpcStructure.getBytes();
}