function readAndValidate()

in web/cli/src/index.ts [88:96]


function readAndValidate(file: string): Buffer {
  let contents = readFileSync(file);
  let first_word = contents.readUIntLE(0, 4);
  if (first_word === GLB_MAGIC) {
    return contents;
  }
  console.error("File %s is not a GLB file: starts with 0x%s.", file, first_word.toString(16));
  process.exit(1);
}