ReadByte() public method

Read a byte from record
public ReadByte ( ) : byte
return byte
コード例 #1
0
ファイル: RecordKEY.cs プロジェクト: DennyMei/dkim-exchange
		public RecordKEY(RecordReader rr)
		{
			FLAGS = rr.ReadUInt16();
			PROTOCOL = rr.ReadByte();
			ALGORITHM = rr.ReadByte();
			PUBLICKEY = rr.ReadString();
		}
コード例 #2
0
 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
ファイル: RecordA.cs プロジェクト: tcz1237/MissionPlanner
 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
ファイル: RecordA.cs プロジェクト: seasky100/Gb28059
 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
ファイル: RecordA.cs プロジェクト: drorgl/MSDNSWebAdmin
 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
ファイル: RecordDS.cs プロジェクト: DennyMei/dkim-exchange
		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
ファイル: RecordLOC.cs プロジェクト: savioacp/HtBot
 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
ファイル: RecordDS.cs プロジェクト: sethuit/MSDNSWebAdmin
        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
ファイル: RecordSIG.cs プロジェクト: sethuit/MSDNSWebAdmin
 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
ファイル: RecordSIG.cs プロジェクト: DennyMei/dkim-exchange
		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
ファイル: RecordWKS.cs プロジェクト: sethuit/MSDNSWebAdmin
        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
ファイル: RecordWKS.cs プロジェクト: seasky100/Gb28059
        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
ファイル: RecordCERT.cs プロジェクト: JoeCqChina/Heijden.Dns
        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
ファイル: RecordLOC.cs プロジェクト: DennyMei/dkim-exchange
		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
ファイル: RecordWKS.cs プロジェクト: drorgl/MSDNSWebAdmin
 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
ファイル: RecordSSHFP.cs プロジェクト: kyhwana/dig.net.DNSSEC
		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);
 }