MCPcopy Create free account
hub / github.com/Wscats/chrome-devtools-cli / getStrLength

Function getStrLength

src/__tests__/MediaStreamRecorder.js:2558–2563  ·  view source on GitHub ↗
(string, offset)

Source from the content-addressed store, hash-verified

2556 }
2557
2558 function getStrLength(string, offset) {
2559 return parseInt(string.substr(offset + 4, 4).split('').map(function(i) {
2560 var unpadded = i.charCodeAt(0).toString(2);
2561 return (new Array(8 - unpadded.length + 1)).join('0') + unpadded;
2562 }).join(''), 2);
2563 }
2564
2565 function parseRIFF(string) {
2566 var offset = 0;

Callers 1

parseRIFFFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected