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)
88if (_pos >= _message.Length) 93if (!DnsEncodedName.TryParse(_message, _pos, out DnsEncodedName name, out int nameWireLen)) 100if (_pos + 4 > _message.Length) 105DnsRecordType type = (DnsRecordType)BinaryPrimitives.ReadUInt16BigEndian(_message[_pos..]); 107DnsRecordClass @class = (DnsRecordClass)BinaryPrimitives.ReadUInt16BigEndian(_message[_pos..]); 119if (_pos >= _message.Length) 124if (!DnsEncodedName.TryParse(_message, _pos, out DnsEncodedName name, out int nameWireLen)) 131if (_pos + 10 > _message.Length) 136DnsRecordType type = (DnsRecordType)BinaryPrimitives.ReadUInt16BigEndian(_message[_pos..]); 138DnsRecordClass @class = (DnsRecordClass)BinaryPrimitives.ReadUInt16BigEndian(_message[_pos..]); 140uint ttl = BinaryPrimitives.ReadUInt32BigEndian(_message[_pos..]); 142ushort rdLength = BinaryPrimitives.ReadUInt16BigEndian(_message[_pos..]); 146if (dataOffset + rdLength > _message.Length) 151ReadOnlySpan<byte> data = _message.Slice(dataOffset, rdLength); 154record = new DnsRecord(name, type, @class, ttl, data, _message, dataOffset);