code: function readEntries(buf) {
    const entries = {}
  
    let off = 0
  
    // Entry collection is terminated by 0x08 byte
    for (; buf.readUInt8(off) != 0x08;) {
      let [key, val, size] = readEntry(buf.slice(off))
  
      entries[key] = val
  
      off += size
    }
  
    return [entries, off + 1]
  }
docs: Read a collection of key-value entries, returning the collection and bytes read