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

Function numToBuffer

src/__tests__/MediaStreamRecorder.js:2437–2444  ·  view source on GitHub ↗
(num)

Source from the content-addressed store, hash-verified

2435 }
2436
2437 function numToBuffer(num) {
2438 var parts = [];
2439 while (num > 0) {
2440 parts.push(num & 0xff);
2441 num = num >> 8;
2442 }
2443 return new Uint8Array(parts.reverse());
2444 }
2445
2446 function strToBuffer(str) {
2447 return new Uint8Array(str.split('').map(function(e) {

Callers 1

generateEBMLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected