10 writes to _pos
System.Net.NameResolution (10)
System\Net\DnsMessageReader.cs (10)
64
_pos
= DnsMessageHeader.Size;
97
_pos
+= nameWireLen;
106
_pos
+= 2;
108
_pos
+= 2;
128
_pos
+= nameWireLen;
137
_pos
+= 2;
139
_pos
+= 2;
141
_pos
+= 4;
143
_pos
+= 2;
152
_pos
+= rdLength;
13 references to _pos
System.Net.NameResolution (13)
System\Net\DnsMessageReader.cs (13)
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
..]);
145
int dataOffset =
_pos
;