Example #1
0
 internal static DnsOptionUpdateLease Read(DataSegment data)
 {
     if (data.Length < 4)
     {
         return((DnsOptionUpdateLease)null);
     }
     return(new DnsOptionUpdateLease(data.ReadInt(0, Endianity.Big)));
 }
Example #2
0
        internal static DnsOptionUpdateLease Read(DataSegment data)
        {
            if (data.Length < ConstDataLength)
                return null;

            int lease = data.ReadInt(0, Endianity.Big);

            return new DnsOptionUpdateLease(lease);
        }
Example #3
0
        internal static DnsOptionUpdateLease Read(DataSegment data)
        {
            if (data.Length < ConstDataLength)
            {
                return(null);
            }

            int lease = data.ReadInt(0, Endianity.Big);

            return(new DnsOptionUpdateLease(lease));
        }