buffer-writer.d.ts 441 B

1234567891011121314151617
  1. /// <reference types="node" />
  2. export declare class Writer {
  3. private size;
  4. private buffer;
  5. private offset;
  6. private headerPosition;
  7. constructor(size?: number);
  8. private ensure;
  9. addInt32(num: number): Writer;
  10. addInt16(num: number): Writer;
  11. addCString(string: string): Writer;
  12. addString(string?: string): Writer;
  13. add(otherBuffer: Buffer): Writer;
  14. private join;
  15. flush(code?: number): Buffer;
  16. }