Download node_modules/@aws-crypto/util/src/numToUint8.ts from sweet2004/bot: direct link, hf CLI and curl.
- Browser
- Download file 296 Bytes
-
https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-crypto/util/src/numToUint8.ts
- Command line
-
hf download hf://spaces/sweet2004/bot/node_modules/@aws-crypto/util/src/numToUint8.ts
-
curl -L -o numToUint8.ts https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-crypto/util/src/numToUint8.ts
296 Bytes
| // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. | |
| // SPDX-License-Identifier: Apache-2.0 | |
| export function numToUint8(num: number) { | |
| return new Uint8Array([ | |
| (num & 0xff000000) >> 24, | |
| (num & 0x00ff0000) >> 16, | |
| (num & 0x0000ff00) >> 8, | |
| num & 0x000000ff, | |
| ]); | |
| } | |