Exemple #1
0
        public override string ToString()
        {
            StringBuilder ret = new StringBuilder();

            ret.Append(Length);
            ret.Append(' ');
            foreach (byte b in Type.Type)
            {
                ret.Append((char)b);
            }
            ret.Append(' ');
            foreach (byte b in Data)
            {
                ret.Append(b);
            }
            ret.Append(' ');
            foreach (byte b in ByteUtils.GetBytes(CRC))
            {
                ret.Append(b.ToString("X2"));
            }

            return(ret.ToString());
        }
Exemple #2
0
 public override byte[] GetBytes()
 {
     return(ByteUtils.GetBytes(gamma));
 }
Exemple #3
0
 public ParsedGAMA(byte[] data)
 {
     gamma = ByteUtils.ToUInt32(data);
 }