stream-sync
Version:
Synchronous stream library. Includes FileReadStreamSync
15 lines (14 loc) • 541 B
TypeScript
/// <reference types="node" />
import { Readable } from "./Readable";
import { ReadableOptions } from "./ReadableOptions";
export declare class BufferReadStreamSync extends Readable {
private data;
destroyed: boolean;
readable: boolean;
constructor(data: string | Buffer, options?: ReadableOptions);
private _autoclose;
destroy(): this;
read(size?: number): Buffer | string | null;
toString(encoding?: BufferEncoding | undefined, start?: number, end?: number): string;
toBuffer(): Buffer;
}