1 write to _message
System.Net.NameResolution (1)
System\Net\DnsMessageReader.cs (1)
63
_message
= message;
15 references to _message
System.Net.NameResolution (15)
System\Net\DnsMessageReader.cs (15)
88
if (_pos >=
_message
.Length)
93
if (!DnsEncodedName.TryParse(
_message
, _pos, out DnsEncodedName name, out int nameWireLen))
100
if (_pos + 4 >
_message
.Length)
105
DnsRecordType type = (DnsRecordType)BinaryPrimitives.ReadUInt16BigEndian(
_message
[_pos..]);
107
DnsRecordClass @class = (DnsRecordClass)BinaryPrimitives.ReadUInt16BigEndian(
_message
[_pos..]);
119
if (_pos >=
_message
.Length)
124
if (!DnsEncodedName.TryParse(
_message
, _pos, out DnsEncodedName name, out int nameWireLen))
131
if (_pos + 10 >
_message
.Length)
136
DnsRecordType type = (DnsRecordType)BinaryPrimitives.ReadUInt16BigEndian(
_message
[_pos..]);
138
DnsRecordClass @class = (DnsRecordClass)BinaryPrimitives.ReadUInt16BigEndian(
_message
[_pos..]);
140
uint ttl = BinaryPrimitives.ReadUInt32BigEndian(
_message
[_pos..]);
142
ushort rdLength = BinaryPrimitives.ReadUInt16BigEndian(
_message
[_pos..]);
146
if (dataOffset + rdLength >
_message
.Length)
151
ReadOnlySpan<byte> data =
_message
.Slice(dataOffset, rdLength);
154
record = new DnsRecord(name, type, @class, ttl, data,
_message
, dataOffset);