Ejemplo n.º 1
0
        private DnsResourceRecord ResolveDsRecord(ResourceRecordInfo info)
        {
            var startIndex = _reader.Index;
            var keyTag     = _reader.ReadUInt16NetworkOrder();
            var algorithm  = _reader.ReadByte();
            var digestType = _reader.ReadByte();
            var digest     = _reader.ReadBytesToEnd(startIndex, info.RawDataLength).ToArray();

            return(new DsRecord(info, keyTag, algorithm, digestType, digest));
        }