MCPcopy Create free account
hub / github.com/dfinity/cancan / encodeArrayBuffer

Function encodeArrayBuffer

scripts/seed.ts:23–23  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

21const INDEX = parseInt(process.argv[2], 10) ?? 0;
22
23const encodeArrayBuffer = (file) => Array.from(new Uint8Array(file));
24
25const MAX_CHUNK_SIZE = 1024 * 500; // 500kb
26interface Video {

Callers 2

uploadVideoFunction · 0.70
chunkFileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected