Ejemplo n.º 1
0
 internal override void ParseData(ReadOnlySpan <byte> resultData, int startPosition, int length)
 {
     Version       = DnsMessageBase.ParseUShort(resultData, ref startPosition);
     OperationCode = (LlqOperationCode)DnsMessageBase.ParseUShort(resultData, ref startPosition);
     ErrorCode     = (LlqErrorCode)DnsMessageBase.ParseUShort(resultData, ref startPosition);
     Id            = DnsMessageBase.ParseULong(resultData, ref startPosition);
     LeaseTime     = TimeSpan.FromSeconds(DnsMessageBase.ParseUInt(resultData, ref startPosition));
 }
Ejemplo n.º 2
0
        internal override void ParseRecordData(byte[] resultData, int startPosition, int length)
        {
            MasterName      = DnsMessageBase.ParseDomainName(resultData, ref startPosition);
            ResponsibleName = DnsMessageBase.ParseDomainName(resultData, ref startPosition);

            SerialNumber       = DnsMessageBase.ParseUInt(resultData, ref startPosition);
            RefreshInterval    = DnsMessageBase.ParseInt(resultData, ref startPosition);
            RetryInterval      = DnsMessageBase.ParseInt(resultData, ref startPosition);
            ExpireInterval     = DnsMessageBase.ParseInt(resultData, ref startPosition);
            NegativeCachingTTL = DnsMessageBase.ParseInt(resultData, ref startPosition);
        }
Ejemplo n.º 3
0
 internal override void ParseRecordData(byte[] resultData, int startPosition, int length)
 {
     Preference = DnsMessageBase.ParseUShort(resultData, ref startPosition);
     Locator32  = DnsMessageBase.ParseUInt(resultData, ref startPosition);
 }