MCPcopy Create free account
hub / github.com/Vanilagy/webcodecs-polyfill / bytesToHexString

Function bytesToHexString

src/misc.ts:511–513  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

509};
510
511export const bytesToHexString = (bytes: Uint8Array) => {
512 return [...bytes].map(x => x.toString(16).padStart(2, '0')).join('');
513};
514
515export const reverseBitsU32 = (x: number): number => {
516 x = ((x >> 1) & 0x55555555) | ((x & 0x55555555) << 1);

Callers 1

generateAvcCodecStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected