Class BINDriver<V>

Type Parameters

Hierarchy

  • BINDriver

Constructors

Properties

MAGIC_NUMBER: number = 0xCAFEBABE

Magic number for identifying the file format.

VERSION: number = 1

Version of the BIN file format.

backup?: BackupOptions
filePath: string
timer: null | Timeout

Methods

  • Reads data from the BIN file.

    Returns Record<string, string>

    The read data.

  • Saves data to the BIN file with a delayed timer.

    Parameters

    • data: object

      The data to be saved.

    • cache: object

      The cache object.

    Returns void

  • Saves data to the BIN file immediately.

    Parameters

    • data: Record<any, any>

      The data to be saved.

    • cache: Record<any, any>

      The cache object.

    Returns void

Generated using TypeDoc