ReadByte() 공개 메소드

Read a byte from record
public ReadByte ( ) : byte
리턴 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
파일: 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
        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);
 }