Spaces:
Configuration error
Configuration error
Download node_modules/capnp-ts/src/serialization/pointers/int64-list.ts from W404NET/Telegram-Chat-Bot: direct link, hf CLI and curl.
- Browser
- Download file 800 Bytes
-
https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/capnp-ts/src/serialization/pointers/int64-list.ts
- Command line
-
hf download hf://spaces/W404NET/Telegram-Chat-Bot/node_modules/capnp-ts/src/serialization/pointers/int64-list.ts
-
curl -L -o int64-list.ts https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/capnp-ts/src/serialization/pointers/int64-list.ts
800 Bytes
| /** | |
| * @author jdiaz5513 | |
| */ | |
| import initTrace from "debug"; | |
| import { Int64 } from "../../types"; | |
| import { ListElementSize } from "../list-element-size"; | |
| import { _ListCtor, List } from "./list"; | |
| import { getContent } from "./pointer"; | |
| const trace = initTrace("capnp:list:composite"); | |
| trace("load"); | |
| export class Int64List extends List<Int64> { | |
| static readonly _capnp: _ListCtor = { | |
| displayName: "List<Int64>" as string, | |
| size: ListElementSize.BYTE_8, | |
| }; | |
| get(index: number): Int64 { | |
| const c = getContent(this); | |
| return c.segment.getInt64(c.byteOffset + index * 8); | |
| } | |
| set(index: number, value: Int64): void { | |
| const c = getContent(this); | |
| c.segment.setInt64(c.byteOffset + index * 8, value); | |
| } | |
| toString(): string { | |
| return `Int64_${super.toString()}`; | |
| } | |
| } | |