internal override void ReadData(ref DnsParser.DnsParseContext context, int length) { int original = context.BytesConsumed; TargetDomainName = context.ReadDomainName(); if (context.BytesConsumed - original != length) { throw new InvalidOperationException("RR data length overrun."); } }
internal override void ReadData(ref DnsParser.DnsParseContext context, int length) { int original = context.BytesConsumed; PreferenceOrder = context.ReadInt16(); MailServerDomainName = context.ReadDomainName(); if (context.BytesConsumed - original != length) { throw new InvalidOperationException("RR data length overrun."); } }
internal override void ReadData(ref DnsParser.DnsParseContext context, int length) { int original = context.BytesConsumed; ZoneName = context.ReadDomainName(); MailBoxName = context.ReadDomainName(); VersionNumber = context.ReadUInt32(); RefreshInterval = context.ReadInt32(); RetryInterval = context.ReadInt32(); Expires = context.ReadInt32(); MinimumTTL = context.ReadUInt32(); if (context.BytesConsumed - original != length) { throw new InvalidOperationException("RR data length overrun."); } }
internal sealed override void ReadData(ref DnsParser.DnsParseContext context, int length) { ReadData(context.AvailableSpan[..length]);
internal abstract void ReadData(ref DnsParser.DnsParseContext context, int length);