buffer-reader.d.ts 374 B

123456789101112131415
  1. /// <reference types="node" />
  2. export declare class BufferReader {
  3. private offset;
  4. private buffer;
  5. private encoding;
  6. constructor(offset?: number);
  7. setBuffer(offset: number, buffer: Buffer): void;
  8. int16(): number;
  9. byte(): number;
  10. int32(): number;
  11. string(length: number): string;
  12. cstring(): string;
  13. bytes(length: number): Buffer;
  14. }