#include <DnsResourceData.h>
A class that represents DNS RR IPv6 data, mainly used in DNS RRs of type DNS_TYPE_AAAA 
◆ IPv6DnsResourceData() [1/3]
      
        
          | pcpp::IPv6DnsResourceData::IPv6DnsResourceData | ( | const uint8_t * | dataPtr, | 
        
          |  |  | size_t | dataLen | 
        
          |  | ) |  |  | 
      
 
A c'tor for this class 
- Parameters
- 
  
    | [in] | dataPtr | A byte array of size 16 that contains an IPv6 address (each byte represents 1 octet) |  | [in] | dataLen | The byte array size, expected to be 16 |  
 
 
 
◆ IPv6DnsResourceData() [2/3]
  
  | 
        
          | pcpp::IPv6DnsResourceData::IPv6DnsResourceData | ( | const IPv6Address & | addr | ) |  |  | inlineexplicit | 
 
A c'tor for this class 
- Parameters
- 
  
    | [in] | addr | The IPv6 address to store in this object |  
 
 
 
◆ IPv6DnsResourceData() [3/3]
  
  | 
        
          | pcpp::IPv6DnsResourceData::IPv6DnsResourceData | ( | const std::string & | addrAsString | ) |  |  | inlineexplicit | 
 
A c'tor for this class 
- Parameters
- 
  
    | [in] | addrAsString | A string representation of an IPv6 address to store in this object |  
 
 
 
◆ getIpAddress()
  
  | 
        
          | IPv6Address pcpp::IPv6DnsResourceData::getIpAddress | ( |  | ) | const |  | inline | 
 
- Returns
- The IPv6 address stored in this object 
 
 
◆ operator==()
Equality operator overload for this class that compares the IPv6 addresses stored in each object 
- Parameters
- 
  
    | [in] | other | The object to compare with |  
 
- Returns
- True if IPv6 addresses are the same in both objects, false otherwise 
 
 
◆ toByteArr()
  
  | 
        
          | bool pcpp::IPv6DnsResourceData::toByteArr | ( | uint8_t * | arr, |  
          |  |  | size_t & | arrLength, |  
          |  |  | IDnsResource * | dnsResource |  
          |  | ) |  | const |  | virtual | 
 
Convert the DNS RR data into a byte array 
- Parameters
- 
  
    | [out] | arr | A pointer to a pre-allocated byte array where the result will be written to |  | [out] | arrLength | A reference to a 2-byte number where the result array length will be written to |  | [in] | dnsResource | A pointer to a DNS resource object where this DNS RR data will be stored |  
 
- Returns
- True if the DNS RR data was successfully converted into a byte array and written to the given array or false if stored DNS RR data is invalid or if it could not be written to the given array 
Implements pcpp::IDnsResourceData.
 
 
◆ toString()
  
  | 
        
          | std::string pcpp::IPv6DnsResourceData::toString | ( |  | ) | const |  | inlinevirtual |