mirror of https://github.com/jkjoy/sunpeiwen.git
13 lines
326 B
TypeScript
13 lines
326 B
TypeScript
/// <reference types="node" />
|
|
declare class ReceiveBuffer {
|
|
private buffer;
|
|
private offset;
|
|
private originalSize;
|
|
constructor(size?: number);
|
|
get length(): number;
|
|
append(data: Buffer): number;
|
|
peek(length: number): Buffer;
|
|
get(length: number): Buffer;
|
|
}
|
|
export { ReceiveBuffer };
|