Class DnsIpAddressResource
Namespace: Ae.Dns.Protocol.Records
Assembly: Ae.Dns.Protocol.dll
Syntax
public sealed class DnsIpAddressResource : object, IDnsResource, IDnsByteArrayWriter, IEquatable<DnsIpAddressResource>
Properties
| Improve this Doc View SourceIPAddress
The Internet Protocol address.
Declaration
public IPAddress IPAddress { get; set; }
Property Value
Type | Description |
---|---|
IPAddress | May be an IPv4 or IPv6 address, depending on the record type. |
Methods
| Improve this Doc View SourceEquals(DnsIpAddressResource)
Declaration
public bool Equals(DnsIpAddressResource other)
Parameters
Type | Name | Description |
---|---|---|
DnsIpAddressResource | other |
Returns
Type | Description |
---|---|
Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
ReadBytes(ReadOnlyMemory<Byte>, ref Int32, Int32)
Read from the specified byte array, starting at the specified offset.
Declaration
public void ReadBytes(ReadOnlyMemory<byte> bytes, ref int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlyMemory<Byte> | bytes | The byte array to read from. |
Int32 | offset | The offset to start at. |
Int32 | length | The maximum number of bytes to read. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
WriteBytes()
Declaration
public IEnumerable<IEnumerable<byte>> WriteBytes()
Returns
Type | Description |
---|---|
IEnumerable<IEnumerable<Byte>> |
WriteBytes(Memory<Byte>, ref Int32)
Write to the the specified byte array.
Declaration
public void WriteBytes(Memory<byte> bytes, ref int offset)
Parameters
Type | Name | Description |
---|---|---|
Memory<Byte> | bytes | The byte array to read from. |
Int32 | offset | The offset to start at. |
Implements
IEquatable<>