index.js
function readAppEntries(buf) {
  const entries = []

  // App entry collection is terminated by null dword
  for (let off = 0; buf.readUInt32LE(off) != 0x00000000; ++off) {
    let [entry, size] = readAppEntry(buf.slice(off))

    entries.push(entry)

    off += size
  }

  return entries
}
function readAppEntries(buf) {
  const entries = []

  // App entry collection is terminated by null dword
  for (let off = 0; buf.readUInt32LE(off) != 0x00000000; ++off) {
    let [entry, size] = readAppEntry(buf.slice(off))

    entries.push(entry)

    off += size
  }

  return entries
}
function readAppEntries ( buf ) { const entries = [ ] // App entry collection is terminated by null dword for ( let off = 0 ; buf . readUInt32LE ( off ) != 0x00000000 ; ++ off ) { let [ entry , size ] = readAppEntry ( buf . slice ( off ) ) entries . push ( entry ) off += size } return entries }
Read a collection of app entries
Read a collection of app entries