Show / Hide Table of Contents

Class DnsOptResource

Describes an EDNS0 psuedo-resource.

Inheritance
Object
DnsOptResource
Implements
IDnsResource
IDnsByteArrayWriter
IEquatable<DnsOptResource>
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 Source

Raw

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 Source

Equals(DnsOptResource)

Declaration
public bool Equals(DnsOptResource other)
Parameters
Type Name Description
DnsOptResource other
Returns
Type Description
Boolean
| Improve this Doc View Source

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
| Improve this Doc View Source

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.

| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
| Improve this Doc View Source

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

IDnsResource
IDnsByteArrayWriter
IEquatable<>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX