Class DnsOptResource
Describes an EDNS0 psuedo-resource.
Namespace: Ae.Dns.Protocol.Records
Assembly: Ae.Dns.Protocol.dll
Syntax
public sealed class DnsOptResource : object, IDnsResource, IDnsByteArrayWriter, IEquatable<DnsOptResource>
Properties
| Improve this Doc View SourceRaw
The raw bytes recieved for this DNS resource.
Declaration
public ReadOnlyMemory<byte> Raw { get; set; }
Property Value
Type | Description |
---|---|
ReadOnlyMemory<Byte> | The raw set of bytes representing the value fo this DNS resource. For string values, due to compression the whole packet may be needed. |
Methods
| Improve this Doc View SourceEquals(DnsOptResource)
Declaration
public bool Equals(DnsOptResource other)
Parameters
Type | Name | Description |
---|---|---|
DnsOptResource | 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(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<>