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); }
public Rpacket(RCommands RCommand, Rmessage Param) { message = Param.Message; header = new Rheader(RCommand, Param.Message.Length); }
public Rpacket(RCommands RCommand) { header = new Rheader(RCommand); }