UNPKG

beth-parser

Version:

Parser library for Bethesda's Creation Engine data files

23 lines (22 loc) 478 B
/// <reference types="node" /> /** * Sequential data source. */ export default interface DataSource { /** * Read the defined number of bytes as a buffer. */ read(length: number): Buffer; /** * Skip the defined number of bytes. */ skip(length: number): void; /** * Close the underlying data source. */ close(): void; /** * Get reader's actual cursor position. */ cursor(): number; }