예제 #1
0
파일: Null.cs 프로젝트: hdeshev/cs-netdns
 /// <summary>
 /// Constructs a NS record by reading bytes from a return message
 /// </summary>
 /// <param name="pointer">A logical pointer to the bytes holding the record</param>
 public Null(Pointer pointer, int length)
 {
     data = pointer.ReadBytes(length);
 }
예제 #2
0
파일: Aaaa.cs 프로젝트: hdeshev/cs-netdns
 /// <summary>
 /// Constructs an AAAA record by reading bytes from a return message
 /// </summary>
 /// <param name="pointer">A logical pointer to the bytes holding the record</param>
 public Aaaa(Pointer pointer)
 {
     byte[] b = pointer.ReadBytes(16);
     ipAddress = new IPAddress(b);
 }
예제 #3
0
파일: A.cs 프로젝트: hdeshev/cs-netdns
 /// <summary>
 /// Constructs an ANAME record by reading bytes from a return message
 /// </summary>
 /// <param name="pointer">A logical pointer to the bytes holding the record</param>
 public A(Pointer pointer)
 {
     byte[] bytes = pointer.ReadBytes(4);
     ipAddress = new IPAddress(bytes);
 }