MCPcopy
hub / github.com/ThatGuySam/doesitarm / ReadUint32

Function ReadUint32

helpers/macho/memory.js:272–283  ·  view source on GitHub ↗
(arr, off)

Source from the content-addressed store, hash-verified

270}
271
272export function ReadUint32(arr, off) {
273
274 if(arr.length < 4 || off > arr.length) //sanity check
275 throw new Error('Cannot read OOB.');
276
277 return parseInt("0x" +
278 arr[off].toString(16) +
279 arr[off + 1].toString(16) +
280 arr[off + 2].toString(16) +
281 arr[off + 3].toString(16)
282 );
283}
284
285export function ReadUint64(arr, off) {
286

Callers 3

FindMagicFunction · 0.90
ParseCommandFunction · 0.90
onloadendFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected