Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 /// <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);
 }
Ejemplo n.º 3
0
 /// <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);
 }