internal override void EncodeData(Span <byte> messageData, ref int currentPosition) { DnsMessageBase.EncodeUShort(messageData, ref currentPosition, Version); DnsMessageBase.EncodeUShort(messageData, ref currentPosition, (ushort)OperationCode); DnsMessageBase.EncodeUShort(messageData, ref currentPosition, (ushort)ErrorCode); DnsMessageBase.EncodeULong(messageData, ref currentPosition, Id); DnsMessageBase.EncodeUInt(messageData, ref currentPosition, (uint)LeaseTime.TotalSeconds); }
protected internal override void EncodeRecordData(byte[] messageData, int offset, ref int currentPosition, Dictionary <string, ushort> domainNames) { DnsMessageBase.EncodeDomainName(messageData, offset, ref currentPosition, MasterName, true, domainNames); DnsMessageBase.EncodeDomainName(messageData, offset, ref currentPosition, ResponsibleName, true, domainNames); DnsMessageBase.EncodeUInt(messageData, ref currentPosition, SerialNumber); DnsMessageBase.EncodeInt(messageData, ref currentPosition, RefreshInterval); DnsMessageBase.EncodeInt(messageData, ref currentPosition, RetryInterval); DnsMessageBase.EncodeInt(messageData, ref currentPosition, ExpireInterval); DnsMessageBase.EncodeInt(messageData, ref currentPosition, NegativeCachingTTL); }
protected internal override void EncodeRecordData(byte[] messageData, int offset, ref int currentPosition, Dictionary <string, ushort> domainNames) { DnsMessageBase.EncodeUShort(messageData, ref currentPosition, Preference); DnsMessageBase.EncodeUInt(messageData, ref currentPosition, Locator32); }