Represents a single file entry within a SARC archive.

Constructors

Properties

Constructors

  • Creates a new SARC file entry.

    Parameters

    • data: Bytes = ...

      The file data (ArrayBuffer or Uint8Array). Defaults to empty array.

    • name: string

      The path/filename of the entry inside the SARC.

    Returns FileEntry

Properties

data: Uint8Array<ArrayBufferLike>

The raw file data as a Uint8Array.

name: string

The relative destination path of the file inside the archive.