MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / copyBytes

Function copyBytes

src/test/builders/fileFakes.ts:635–639  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

633}
634
635function copyBytes(bytes: Uint8Array): ArrayBuffer {
636 const buffer = new ArrayBuffer(bytes.byteLength);
637 new Uint8Array(buffer).set(bytes);
638 return buffer;
639}
640
641function toDomException(error: Error): DOMException {
642 if (error instanceof DOMException) {

Callers 3

buildReadableBinaryBlobFunction · 0.85
buildReadableBinaryFileFunction · 0.85
copyBytesToArrayBufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected