Skip to content

Instantly share code, notes, and snippets.

@jeremyabel
Created December 5, 2018 00:49
Show Gist options
  • Save jeremyabel/70aab53b530aad8c0d7bcd933e1213a7 to your computer and use it in GitHub Desktop.
Save jeremyabel/70aab53b530aad8c0d7bcd933e1213a7 to your computer and use it in GitHub Desktop.
var endian = true;
var byte = 0;
var magic = view.getUint32(byte, endian);
var objectCount = view.getUint32(byte += 4, endian);
var vertexCount = view.getUint32(byte += 8, endian);
var indexCount = view.getSome8ByteValue(byte += 8, endian);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment