Class DnsStringResource
Represents a DNS resource containing a string.
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 SourceCanUseCompression
Describes whether this string resource can use string compression.
Declaration
protected abstract bool CanUseCompression { get; }
Property Value
Type | Description |
---|---|
Boolean |
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 SourceEquals(DnsStringResource)
Declaration
public bool Equals(DnsStringResource other)
Parameters
Type | Name | Description |
---|---|---|
DnsStringResource | 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 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. |
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
IEquatable<>