예제 #1
0
        public Rpacket(RCommands RCommand, Rmessage Param, Rexp Value)
        {
            /* Create array to message */
            Byte[] binValue = Value.getBinaryRepresentation();

            Int32 ValueLength = binValue.Length;
            Int32 ParamLength = Param.Message.Length;

            message = new Byte[ParamLength + ValueLength];

            header = new Rheader(RCommand, (ParamLength + ValueLength));
            Array.Copy(Param.Message, 0, message, 0, ParamLength);
            Array.Copy(binValue, 0, message, ParamLength, ValueLength);
        }
예제 #2
0
 public Rpacket(RCommands RCommand, Rmessage Param)
 {
     message = Param.Message;
     header  = new Rheader(RCommand, Param.Message.Length);
 }
예제 #3
0
 public Rpacket(RCommands RCommand)
 {
     header = new Rheader(RCommand);
 }