/** @packageDocumentation * @module OrbitGT */ declare type int32 = number; import { ABuffer } from "../buffer/ABuffer"; import { AList } from "../collection/AList"; import { ALong } from "../runtime/ALong"; import { FileContent } from "./FileContent"; import { FileRange } from "./FileRange"; import { FileStorage } from "./FileStorage"; /** * Class PageCachedFile defines a paged content cache of a single file. */ /** @internal */ export declare class PageCachedFile extends FileStorage { private _fileStorage; private _fileName; private _fileSize; private _pageSize; private _pageCount; private _contentCache; private _requestCount; private _requestSize; /** * Create a new cached file. * @param fileStorage the underlying file storage. * @param fileName the name of the file to cache. * @param fileSize the length of the file to cache. * @param pageSize the byte size of a cache page (common sizes are 32768, 65536, 131072 or 262144). * @param maxPageCount the maximum number of pages to cache (the oldest pages are purged when the cache is full). */ constructor(fileStorage: FileStorage, fileName: string, fileSize: ALong, pageSize: int32, maxPageCount: int32); /** * FileStorage method. */ close(): void; /** * FileStorage method. */ getFileLength(fileName: string): Promise; /** * FileStorage method. */ readFileParts(fileName: string, ranges: AList): Promise>; /** * FileStorage method. */ readFilePart(fileName: string, offset: ALong, size: int32): Promise; /** * FileStorage method. */ printStatistics(clear: boolean): void; } export {}; //# sourceMappingURL=PageCachedFile.d.ts.map