Spaces:
Sleeping
Sleeping
Download node_modules/@protobufjs/utf8/index.d.ts from carpool-team/Carpool: direct link, hf CLI and curl.
- Browser
- Download file 734 Bytes
-
https://huggingface.co/spaces/carpool-team/Carpool/resolve/main/node_modules/%40protobufjs/utf8/index.d.ts
- Command line
-
hf download hf://spaces/carpool-team/Carpool/node_modules/@protobufjs/utf8/index.d.ts
-
curl -L -o index.d.ts https://huggingface.co/spaces/carpool-team/Carpool/resolve/main/node_modules/%40protobufjs/utf8/index.d.ts
734 Bytes
| /** | |
| * Calculates the UTF8 byte length of a string. | |
| * @param {string} string String | |
| * @returns {number} Byte length | |
| */ | |
| export function length(string: string): number; | |
| /** | |
| * Reads UTF8 bytes as a string. | |
| * @param {Uint8Array} buffer Source buffer | |
| * @param {number} start Source start | |
| * @param {number} end Source end | |
| * @returns {string} String read | |
| */ | |
| export function read(buffer: Uint8Array, start: number, end: number): string; | |
| /** | |
| * Writes a string as UTF8 bytes. | |
| * @param {string} string Source string | |
| * @param {Uint8Array} buffer Destination buffer | |
| * @param {number} offset Destination offset | |
| * @returns {number} Bytes written | |
| */ | |
| export function write(string: string, buffer: Uint8Array, offset: number): number; | |