Ejemplo n.º 1
0
 internal void Expand(MR_Response response)
 {
     ConnectionSerialNumber = BitConverter.ToUInt16(response.ResponseData, 0);
     OriginatorVendorId     = BitConverter.ToUInt16(response.ResponseData, 2);
     OriginatorSerialNumber = BitConverter.ToUInt32(response.ResponseData, 4);
     RemainingPathSize      = response.ResponseData[8];
 }
Ejemplo n.º 2
0
        internal void Expand(MR_Response response)
        {
            O2T_ConnectionId       = BitConverter.ToUInt32(response.ResponseData, 0);
            T2O_ConnectionId       = BitConverter.ToUInt32(response.ResponseData, 4);
            ConnectionSerialNumber = BitConverter.ToUInt16(response.ResponseData, 8);
            OriginatorVendorId     = BitConverter.ToUInt16(response.ResponseData, 10);
            OriginatorSerialNumber = BitConverter.ToUInt32(response.ResponseData, 12);
            O2T_API = BitConverter.ToUInt32(response.ResponseData, 16);
            T2O_API = BitConverter.ToUInt32(response.ResponseData, 20);
            ApplicationReplySize = response.ResponseData[24];

            if (ApplicationReplySize > 0)
            {
                byte[] temp = new byte[ApplicationReplySize * 2];
                Buffer.BlockCopy(response.ResponseData, 26, temp, 0, temp.Length);
            }
        }