hds.RPCPacket.getBytes C# (CSharp) Method

getBytes() public method

public getBytes ( ) : byte[]
return byte[]
        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();
        }

Usage Example

コード例 #1
0
 public void appendRpc(RPCPacket newRPC)
 {
     din.append(newRPC.getBytes());
     rpcInside++;
 }
All Usage Examples Of hds.RPCPacket::getBytes