node-noise
Version:
11 lines (10 loc) • 407 B
TypeScript
/// <reference types="node" />
/// <reference types="node" />
import * as streams from 'stream';
export declare class LengthPrefixedDecoder extends streams.Duplex {
private readonly receiveBuffer;
private nextWrite;
constructor(options?: streams.DuplexOptions);
_read(size: number): void;
_write(chunk: any, encoding: BufferEncoding, callback: (error?: (Error | null)) => void): void;
}