dns.wire.reader:sub_reader

dns.wire

reader:sub_reader(n) -> reader, err

Create a bounded sub-reader over the next n bytes

Shares the parent's full message buffer for compression pointer resolution. Parent cursor advances past the bounded region. Used for RDATA parsing where each record's RDATA must be read from exactly n bytes (the RDLENGTH field).