Show / Hide Table of Contents

Class DnsStringResource

Represents a DNS resource containing a string.

Inheritance
Object
DnsStringResource
DnsDomainResource
DnsMxResource
DnsTextResource
Implements
IDnsResource
IDnsByteArrayWriter
IEquatable<DnsStringResource>
Namespace: Ae.Dns.Protocol.Records
Assembly: Ae.Dns.Protocol.dll
Syntax
public abstract class DnsStringResource : object, IDnsResource, IDnsByteArrayWriter, IEquatable<DnsStringResource>

Properties

| Improve this Doc View Source

CanUseCompression

Describes whether this string resource can use string compression.

Declaration
protected abstract bool CanUseCompression { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

Entries

The text entry contained within this resource.

Declaration
public string[] Entries { get; set; }
Property Value
Type Description
String[]

The text values of this resource as an array of strings.

Methods

| Improve this Doc View Source

Equals(DnsStringResource)

Declaration
public bool Equals(DnsStringResource other)
Parameters
Type Name Description
DnsStringResource 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 virtual 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

WriteBytes(Memory<Byte>, ref Int32)

Write to the the specified byte array.

Declaration
public virtual 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