Skip to content

Documentation / @sw-file-lib/core / ParsedComponentModAsset

Interface: ParsedComponentModAsset ​

ts
interface ParsedComponentModAsset {
  name: string;
  data: Uint8Array;
  dataSize: number;
}

Defined in: componentMod/index.ts:43

Parsed asset entry from a component mod binary.

Unlike ComponentModAsset, this preserves the original serialized byte length of the asset.

Properties ​

PropertyTypeDescription

name

string

Asset file name.

data

Uint8Array

Raw asset data.

dataSize

number

Byte length declared in the file for data.