Example #1
0
 public RKEY(PersistedReader reader)
 {
     Flags    = reader.ReadUInt16();
     Protocol = reader.ReadByte();
     Algo     = reader.ReadByte();
     PKey     = reader.ReadString();
 }
Example #2
0
 public RLOC(PersistedReader reader)
 {
     Version     = reader.ReadByte();         // must be 0!
     Size        = reader.ReadByte();
     HPreference = reader.ReadByte();
     VPreference = reader.ReadByte();
     Latitude    = reader.ReadUInt16();
     Longitude   = reader.ReadUInt16();
     Altitude    = reader.ReadUInt16();
 }
Example #3
0
 public RSIG(PersistedReader reader)
 {
     TypeCovered   = reader.ReadUInt16();
     Algo          = reader.ReadByte();
     Labels        = reader.ReadByte();
     TTL           = reader.ReadUInt16();
     SigExpiration = reader.ReadUInt16();
     SigInception  = reader.ReadUInt16();
     KeyTag        = reader.ReadUInt16();
     SigName       = reader.ReadDomainName();
     Sig           = reader.ReadString();
 }
Example #4
0
        public RDS(PersistedReader reader)
        {
            reader.BaseStream.Position -= 2;
            ushort length = reader.ReadUInt16();

            KeyTag     = reader.ReadUInt16();
            Algo       = reader.ReadByte();
            DigestType = reader.ReadByte();
            length    -= 4;
            Digest     = new byte[length];
            Digest     = reader.ReadBytes(Digest.Length);
        }
Example #5
0
        public RWKS(PersistedReader reader)
        {
            reader.BaseStream.Position -= 2;
            ushort length = reader.ReadUInt16();

            Address = string.Format("{0}.{1}.{2}.{3}",
                                    reader.ReadByte(),
                                    reader.ReadByte(),
                                    reader.ReadByte(),
                                    reader.ReadByte());
            Protocol = (int)reader.ReadByte();
            length  -= 5;
            Bitmap   = new byte[length];
            Bitmap   = reader.ReadBytes(length);
        }