Esempio n. 1
0
 protected override void WriteData(AcnBinaryWriter data)
 {
     data.Write(ComponentId.ToByteArray());
     data.WriteOctet(MemberId);
     data.WriteOctet(ChannelNumber);
     data.WriteOctet(ReciprocalChannel);
     data.WriteOctet(TotalSequenceNumber);
     data.WriteOctet(ReliableSequenceNumber);
     DestinationAddress.WriteData(data);
     ChannelParameterBlock.WriteData(data);
     data.Write(AdHocExpiry);
 }
Esempio n. 2
0
 protected override void ReadData(AcnBinaryReader data)
 {
     ComponentId            = new Guid(data.ReadBytes(16));
     MemberId               = data.ReadOctet2();
     ChannelNumber          = data.ReadOctet2();
     ReciprocalChannel      = data.ReadOctet2();
     TotalSequenceNumber    = data.ReadOctet4();
     ReliableSequenceNumber = data.ReadOctet4();
     DestinationAddress     = SdtAddress.ReadData(data);
     ChannelParameterBlock  = ChannelParameterBlock.ReadData(data);
     AdHocExpiry            = data.ReadByte();
 }