UNPKG

@syncfusion/ej2-pdf

Version:

Feature-rich JavaScript PDF library with built-in support for loading and manipulating PDF document.

65 lines (64 loc) 1.83 kB
import { _Inflater } from './inflater'; /** * Provides a deflate decoding stream that inflates compressed data from the backing buffer on demand. * * @private */ export declare class _DeflateStream { /** * Source data for the deflate stream. * * @private */ _data: number[]; /** * Indicates whether the underlying stream should remain open. * * @private */ _leaveOpen: boolean; /** * Current offset within the data array. * * @private */ _offset: number; /** * Temporary buffer used during decompression. * * @private */ _buffer: number[]; /** * Inflater instance used to process deflate blocks. * * @private */ _inflater: _Inflater; constructor(data: number[], offset: number, leaveOpen: boolean); /** * Inflates data into the target array, requesting more input as needed until * the requested count is satisfied or the end of the stream is reached. * * @private * @param {number[]} array Target array to fill with uncompressed bytes. * @param {number} offset Offset in the target array where writing begins. * @param {number} count Maximum number of bytes to read. * @returns {{count: number, data: number[]}} result Object containing bytes written and final array. */ _read(array: number[], offset: number, count: number): { count: number; data: number[]; }; /** * Reads a chunk of compressed bytes from the source data into the internal buffer * and advances the current offset. * * @private * @returns {{buffer: number[], count: number}} result The read buffer and number of bytes read. */ _readBytes(): { buffer: number[]; count: number; }; }