receivebuffer.d.ts 314 B

123456789101112
  1. /// <reference types="node" />
  2. declare class ReceiveBuffer {
  3. private buffer;
  4. private offset;
  5. private originalSize;
  6. constructor(size?: number);
  7. get length(): number;
  8. append(data: Buffer): number;
  9. peek(length: number): Buffer;
  10. get(length: number): Buffer;
  11. }
  12. export { ReceiveBuffer };