Server IP : 92.205.26.207 / Your IP : 216.73.216.16 Web Server : Apache System : Linux 207.26.205.92.host.secureserver.net 4.18.0-553.60.1.el8_10.x86_64 #1 SMP Thu Jul 10 04:01:16 EDT 2025 x86_64 User : zikryat ( 1002) PHP Version : 8.3.23 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/zikryat/public_html/node_modules/peek-readable/lib/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
/// <reference types="node" /> import { Readable } from 'stream'; export { EndOfStreamError } from './EndOfFileStream'; export declare class StreamReader { private s; /** * Deferred used for postponed read request (as not data is yet available to read) */ private deferred; private endOfStream; /** * Store peeked data * @type {Array} */ private peekQueue; constructor(s: Readable); /** * Read ahead (peek) from stream. Subsequent read or peeks will return the same data * @param uint8Array - Uint8Array (or Buffer) to store data read from stream in * @param offset - Offset target * @param length - Number of bytes to read * @returns Number of bytes peeked */ peek(uint8Array: Uint8Array, offset: number, length: number): Promise<number>; /** * Read chunk from stream * @param buffer - Target Uint8Array (or Buffer) to store data read from stream in * @param offset - Offset target * @param length - Number of bytes to read * @returns Number of bytes read */ read(buffer: Uint8Array, offset: number, length: number): Promise<number>; /** * Read chunk from stream * @param buffer Target Uint8Array (or Buffer) to store data read from stream in * @param offset Offset target * @param length Number of bytes to read * @returns Number of bytes read */ private readFromStream; /** * Process deferred read request * @param request Deferred read request */ private readDeferred; private reject; }