ReadByte() public method

Read a byte from record
public ReadByte ( ) : byte
return byte
示例#1
0
		public RecordKEY(RecordReader rr)
		{
			FLAGS = rr.ReadUInt16();
			PROTOCOL = rr.ReadByte();
			ALGORITHM = rr.ReadByte();
			PUBLICKEY = rr.ReadString();
		}
 public RecordKEY(RecordReader rr)
 {
     FLAGS     = rr.ReadUInt16();
     PROTOCOL  = rr.ReadByte();
     ALGORITHM = rr.ReadByte();
     PUBLICKEY = rr.ReadString();
 }
示例#3
0
文件: RecordA.cs 项目: ekwus/Zeroconf
 public RecordA(RecordReader rr)
 {
     Address = string.Format("{0}.{1}.{2}.{3}",
         rr.ReadByte(),
         rr.ReadByte(),
         rr.ReadByte(),
         rr.ReadByte());
 }
示例#4
0
 public RecordA(RecordReader rr)
 {
     Address = string.Format("{0}.{1}.{2}.{3}",
                             rr.ReadByte(),
                             rr.ReadByte(),
                             rr.ReadByte(),
                             rr.ReadByte());
 }
示例#5
0
		public RecordA(RecordReader rr)
		{
			System.Net.IPAddress.TryParse(string.Format("{0}.{1}.{2}.{3}",
				rr.ReadByte(),
				rr.ReadByte(),
				rr.ReadByte(),
				rr.ReadByte()), out this.Address);
		}
示例#6
0
 public RecordA(RecordReader rr)
 {
     System.Net.IPAddress.TryParse(string.Format("{0}.{1}.{2}.{3}",
                                                 rr.ReadByte(),
                                                 rr.ReadByte(),
                                                 rr.ReadByte(),
                                                 rr.ReadByte()), out this.Address);
 }
示例#7
0
 public RecordA(RecordReader rr)
 {
     System.Net.IPAddress.TryParse(string.Format(CultureInfo.InvariantCulture, "{0}.{1}.{2}.{3}",
         rr.ReadByte(),
         rr.ReadByte(),
         rr.ReadByte(),
         rr.ReadByte()), out this.m_address);
 }
示例#8
0
 public RecordA(RecordReader rr)
 {
     System.Net.IPAddress.TryParse(string.Format(CultureInfo.InvariantCulture, "{0}.{1}.{2}.{3}",
                                                 rr.ReadByte(),
                                                 rr.ReadByte(),
                                                 rr.ReadByte(),
                                                 rr.ReadByte()), out this.m_address);
 }
示例#9
0
		public RecordDS(RecordReader rr)
		{
			ushort length = rr.ReadUInt16(-2);
			KEYTAG = rr.ReadUInt16();
			ALGORITHM = rr.ReadByte();
			DIGESTTYPE = rr.ReadByte();
			length -= 4;
			DIGEST = new byte[length];
			DIGEST = rr.ReadBytes(length);
		}
示例#10
0
 public RecordLOC(RecordReader rr)
 {
     VERSION   = rr.ReadByte();           // must be 0!
     SIZE      = rr.ReadByte();
     HORIZPRE  = rr.ReadByte();
     VERTPRE   = rr.ReadByte();
     LATITUDE  = rr.ReadUInt32();
     LONGITUDE = rr.ReadUInt32();
     ALTITUDE  = rr.ReadUInt32();
 }
示例#11
0
        public RecordDS(RecordReader rr)
        {
            ushort length = rr.ReadUInt16(-2);

            KEYTAG     = rr.ReadUInt16();
            ALGORITHM  = rr.ReadByte();
            DIGESTTYPE = rr.ReadByte();
            length    -= 4;
            DIGEST     = new byte[length];
            DIGEST     = rr.ReadBytes(length);
        }
示例#12
0
 public RecordSIG(RecordReader rr)
 {
     TYPECOVERED         = rr.ReadUInt16();
     ALGORITHM           = rr.ReadByte();
     LABELS              = rr.ReadByte();
     ORIGINALTTL         = rr.ReadUInt32();
     SIGNATUREEXPIRATION = rr.ReadUInt32();
     SIGNATUREINCEPTION  = rr.ReadUInt32();
     KEYTAG              = rr.ReadUInt16();
     SIGNERSNAME         = rr.ReadDomainName();
     SIGNATURE           = rr.ReadString();
 }
示例#13
0
		public RecordSIG(RecordReader rr)
		{
			TYPECOVERED = rr.ReadUInt16();
			ALGORITHM = rr.ReadByte();
			LABELS = rr.ReadByte();
			ORIGINALTTL = rr.ReadUInt32();
			SIGNATUREEXPIRATION = rr.ReadUInt32();
			SIGNATUREINCEPTION = rr.ReadUInt32();
			KEYTAG = rr.ReadUInt16();
			SIGNERSNAME = rr.ReadDomainName();
			SIGNATURE = rr.ReadString();
		}
示例#14
0
		public RecordWKS(RecordReader rr)
		{
			ushort length = rr.ReadShort(-2);
			ADDRESS = string.Format("{0}.{1}.{2}.{3}",
				rr.ReadByte(),
				rr.ReadByte(),
				rr.ReadByte(),
				rr.ReadByte());
			PROTOCOL = (int)rr.ReadByte();
			length -= 5;
			BITMAP = new byte[length];
			BITMAP = rr.ReadBytes(length);
		}
示例#15
0
        public RecordWKS(RecordReader rr)
        {
            ushort length = rr.ReadUInt16(-2);

            ADDRESS = string.Format(CultureInfo.InvariantCulture, "{0}.{1}.{2}.{3}",
                                    rr.ReadByte(),
                                    rr.ReadByte(),
                                    rr.ReadByte(),
                                    rr.ReadByte());
            PROTOCOL = (int)rr.ReadByte();
            length  -= 5;
            BITMAP   = new byte[length];
            BITMAP   = rr.ReadBytes(length);
        }
示例#16
0
        public RecordWKS(RecordReader rr)
        {
            ushort length = rr.ReadShort(-2);

            ADDRESS = string.Format("{0}.{1}.{2}.{3}",
                                    rr.ReadByte(),
                                    rr.ReadByte(),
                                    rr.ReadByte(),
                                    rr.ReadByte());
            PROTOCOL = (int)rr.ReadByte();
            length  -= 5;
            BITMAP   = new byte[length];
            BITMAP   = rr.ReadBytes(length);
        }
示例#17
0
        public RecordCERT(RecordReader rr)
        {
            // re-read length
            ushort RDLENGTH = rr.ReadUInt16(-2);

            //RDATA = rr.ReadBytes(RDLENGTH);

            TYPE      = rr.ReadUInt16();
            KEYTAG    = rr.ReadUInt16();
            ALGORITHM = rr.ReadByte();
            var length = RDLENGTH - 5;

            RAWKEY    = rr.ReadBytes(length);
            PUBLICKEY = Convert.ToBase64String(RAWKEY);
        }
示例#18
0
		public RecordLOC(RecordReader rr)
		{
			VERSION = rr.ReadByte(); // must be 0!
			SIZE = rr.ReadByte();
			HORIZPRE = rr.ReadByte();
			VERTPRE = rr.ReadByte();
			LATITUDE = rr.ReadUInt32();
			LONGITUDE = rr.ReadUInt32();
			ALTITUDE = rr.ReadUInt32();
		}
示例#19
0
 public RecordWKS(RecordReader rr)
 {
     ushort length = rr.ReadUInt16(-2);
     ADDRESS = string.Format(CultureInfo.InvariantCulture, "{0}.{1}.{2}.{3}",
         rr.ReadByte(),
         rr.ReadByte(),
         rr.ReadByte(),
         rr.ReadByte());
     PROTOCOL = (int)rr.ReadByte();
     length -= 5;
     BITMAP = new byte[length];
     BITMAP = rr.ReadBytes(length);
 }
示例#20
0
		public RecordSSHFP(RecordReader rr)
		{         
            ALGORITHM = rr.ReadByte();
            DIGESTTYPE = rr.ReadByte();
            fingerprint = rr.ReadBytes(20);
		}
示例#21
0
 public RecordSSHFP(RecordReader rr)
 {
     ALGORITHM   = rr.ReadByte();
     DIGESTTYPE  = rr.ReadByte();
     fingerprint = rr.ReadBytes(20);
 }