MCPcopy
hub / github.com/javascript-obfuscator/javascript-obfuscator / get

Function get

test/fixtures/compile-performance.js:27347–27355  ·  view source on GitHub ↗
(view, bytes, index, isLittleEndian)

Source from the content-addressed store, hash-verified

27345 };
27346
27347 var get = function(view, bytes, index, isLittleEndian){
27348 var numIndex = +index
27349 , intIndex = toInteger(numIndex);
27350 if(numIndex != intIndex || intIndex < 0 || intIndex + bytes > view[$LENGTH])throw RangeError(WRONG_INDEX);
27351 var store = view[$BUFFER]._b
27352 , start = intIndex + view[$OFFSET]
27353 , pack = store.slice(start, start + bytes);
27354 return isLittleEndian ? pack : pack.reverse();
27355 };
27356 var set = function(view, bytes, index, conversion, value, isLittleEndian){
27357 var numIndex = +index
27358 , intIndex = toInteger(numIndex);

Callers 2

wrapperFunction · 0.70

Calls 2

isObjectFunction · 0.85
hasFunction · 0.50

Tested by

no test coverage detected