Spaces:
Paused
Paused
Download node_modules/@huggingface/hub/dist/src/utils/ChunkCache.d.ts from ken-q/opencode-home: direct link, hf CLI and curl.
- Browser
- Download file 768 Bytes
-
https://huggingface.co/spaces/ken-q/opencode-home/resolve/main/node_modules/%40huggingface/hub/dist/src/utils/ChunkCache.d.ts
- Command line
-
hf download hf://spaces/ken-q/opencode-home/node_modules/@huggingface/hub/dist/src/utils/ChunkCache.d.ts
-
curl -L -o ChunkCache.d.ts https://huggingface.co/spaces/ken-q/opencode-home/resolve/main/node_modules/%40huggingface/hub/dist/src/utils/ChunkCache.d.ts
768 Bytes
| export declare class ChunkCache { | |
| index: number; | |
| xorbIndices: Int32Array; | |
| chunkIndices: Uint16Array; | |
| map: Map<string, number>; | |
| hmacs: Set<string>; | |
| maxSize: number; | |
| constructor(maxSize?: number); | |
| addChunkToCache(hash: string, xorbIndex: number, chunkIndex: number, hmac: string | null): void; | |
| getChunk(hash: string, | |
| /** | |
| * Set to null if you only want to check against locally created chunks, or the hash is already a hmac | |
| */ | |
| hmacFunction: ((hash: string, key: string) => string) | null): { | |
| xorbIndex: number; | |
| chunkIndex: number; | |
| } | undefined; | |
| updateChunkIndex(hash: string, chunkIndex: number): void; | |
| removeChunkFromCache(hash: string): void; | |
| } | |
| //# sourceMappingURL=ChunkCache.d.ts.map |