Spaces:
Paused
Paused
Download node_modules/@huggingface/hub/src/utils/combineUint8Arrays.ts from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 297 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40huggingface/hub/src/utils/combineUint8Arrays.ts
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@huggingface/hub/src/utils/combineUint8Arrays.ts
-
curl -L -o combineUint8Arrays.ts https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40huggingface/hub/src/utils/combineUint8Arrays.ts
297 Bytes
| export function combineUint8Arrays( | |
| a: Uint8Array<ArrayBufferLike>, | |
| b: Uint8Array<ArrayBufferLike>, | |
| ): Uint8Array<ArrayBuffer> { | |
| const aLength = a.length; | |
| const combinedBytes = new Uint8Array(aLength + b.length); | |
| combinedBytes.set(a); | |
| combinedBytes.set(b, aLength); | |
| return combinedBytes; | |
| } | |