Beispiel #1
0
 private void ParseInfo(IndividualEndianessBinaryReader br)
 {
     if (_infoLength > 0)
     {
         _information = br.ReadBytes(_infoLength);
     }
 }
Beispiel #2
0
        protected void ParseAPDU(IndividualEndianessBinaryReader br)
        {
            // read length information and increase lenght by one due to TPCI/APCI encoding
            var len = br.ReadByte() + 1;

            if (br.Available < len)
            {
                throw BufferSizeException.TooBig("Cemi Frame - TCPI Data");
            }
            _payload = br.ReadBytes(len);
            _apci    = new Apci(_payload);
        }