MCPcopy Create free account
hub / github.com/outerbase/studio / hex

Function hex

src/lib/bit-operation.ts:9–15  ·  view source on GitHub ↗
(arrayBuffer: ArrayBuffer)

Source from the content-addressed store, hash-verified

7
8// https://stackoverflow.com/questions/40031688/javascript-arraybuffer-to-hex
9export function hex(arrayBuffer: ArrayBuffer) {
10 const buff = new Uint8Array(arrayBuffer);
11 let hexOctets = "";
12
13 for (let i = 0; i < buff.length; ++i) hexOctets += byteToHex[buff[i]];
14 return hexOctets;
15}

Callers 1

escapeSqlBinaryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected