MCPcopy Create free account
hub / github.com/CommE2E/comm / stringToIntArray

Function stringToIntArray

native/media/blob-utils.js:57–63  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

55}
56
57function stringToIntArray(str: string): Uint8Array {
58 const array = new Uint8Array(str.length);
59 for (let i = 0; i < str.length; i++) {
60 array[i] = str.charCodeAt(i);
61 }
62 return array;
63}
64
65type FetchBlobResult = {
66 success: true,

Callers 2

readFileHeaderFunction · 0.90
dataURIToIntArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected