4 instantiations of DnsEncodedName
System.Net.NameResolution (4)
System\Net\DnsEncodedName.cs (4)
68name = new DnsEncodedName(buffer[offset..(offset + wireLen)], 0, isAce, hasPointers: false); 73name = new DnsEncodedName(buffer, offset, isAce, hasPointers: true); 98result = new DnsEncodedName(destination[..1], 0, isAce: false, hasPointers: false); 175result = new DnsEncodedName(destination[..wireLen], 0, isAce, hasPointers: false);
39 references to DnsEncodedName
System.Net.NameResolution (39)
System\Net\DnsEncodedName.cs (2)
50public static bool TryParse(ReadOnlySpan<byte> buffer, int offset, out DnsEncodedName name, out int bytesConsumed) 83out DnsEncodedName result,
System\Net\DnsMessageReader.cs (8)
11public DnsEncodedName Name { get; } 15internal DnsQuestion(DnsEncodedName name, DnsRecordType type, DnsRecordClass @class) 26public DnsEncodedName Name { get; } 40internal DnsRecord(DnsEncodedName name, DnsRecordType type, DnsRecordClass @class, 93if (!DnsEncodedName.TryParse(_message, _pos, out DnsEncodedName name, out int nameWireLen)) 124if (!DnsEncodedName.TryParse(_message, _pos, out DnsEncodedName name, out int nameWireLen))
System\Net\DnsMessageWriter.cs (1)
37scoped DnsEncodedName name,
System\Net\DnsRecordParsing.cs (25)
36public DnsEncodedName CName { get; } 38internal DnsCNameRecordData(DnsEncodedName cname) 47public DnsEncodedName Exchange { get; } 49internal DnsMxRecordData(ushort preference, DnsEncodedName exchange) 61public DnsEncodedName Target { get; } 63internal DnsSrvRecordData(ushort priority, ushort weight, ushort port, DnsEncodedName target) 74public DnsEncodedName PrimaryNameServer { get; } 75public DnsEncodedName ResponsibleMailbox { get; } 82internal DnsSoaRecordData(DnsEncodedName primaryNameServer, DnsEncodedName responsibleMailbox, 144public DnsEncodedName Name { get; } 146internal DnsPtrRecordData(DnsEncodedName name) 154public DnsEncodedName Name { get; } 156internal DnsNsRecordData(DnsEncodedName name) 193if (!record.TryParseSingleDnsNameRecord(out DnsEncodedName cname)) 210if (!record.TryParseSingleDnsNameRecord(out DnsEncodedName exchange, 2)) 228if (!record.TryParseSingleDnsNameRecord(out DnsEncodedName target, 6)) 244if (!DnsEncodedName.TryParse(record.Message.Slice(0, record.DataOffset + record.Data.Length), record.DataOffset, out DnsEncodedName mname, out int mnameLen)) 249if (!DnsEncodedName.TryParse(record.Message.Slice(0, record.DataOffset + record.Data.Length), record.DataOffset + mnameLen, out DnsEncodedName rname, out int rnameLen)) 287if (!record.TryParseSingleDnsNameRecord(out DnsEncodedName ptr)) 302if (!record.TryParseSingleDnsNameRecord(out DnsEncodedName ns)) 310private static bool TryParseSingleDnsNameRecord(this DnsRecord record, out DnsEncodedName name, int inRecordOffset = 0) 313DnsEncodedName.TryParse(record.Message.Slice(0, record.DataOffset + record.Data.Length), record.DataOffset + inRecordOffset, out name, out int bytesConsumed)
System\Net\DnsResolverPal.Managed.cs (3)
606Span<byte> nameBuffer = stackalloc byte[DnsEncodedName.MaxEncodedLength]; 607OperationStatus status = DnsEncodedName.TryEncode(name, nameBuffer, out DnsEncodedName encodedName, out _);