API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceContainerEntry

@codexo/exojs / assets / stable

One asset in a container's head. `offset` and `length` address the asset's own bytes within the uncompressed data section. `type` is the asset type name resolved against the loader's type map; `options` are forwarded to the handler's `createFromBytes`.

7
props
0
methods
0
events
Import
import { ContainerEntry } from '@codexo/exojs'

One asset in a container's head. `offset` and `length` address the asset's own bytes within the uncompressed data section. `type` is the asset type name resolved against the loader's type map; `options` are forwarded to the handler's `createFromBytes`.

Properties7
hash?: string
SHA-256 of the asset's own bytes, lowercase hex. It identifies the asset rather than one particular packing of it, so repacking leaves it unchanged.
length: number
Byte length of the asset's own bytes.
mime?: string
Optional MIME hint (informational; the factory determines type from bytes).
offset: number
Byte offset within the uncompressed data section; a multiple of CONTAINER_ALIGNMENT.
options?: unknown
Optional per-asset options forwarded to the handler.
source: string
The logical source this entry stands in for - the very same relative path a network load would use. The loader canonicalizes it with its own base path, so an entry resolves to the same asset identity whether it arrived through the container or over the network, and a container is never welded to the path it was built at.
type: string
Asset type name (resolved to a constructor via the loader's type map).
Source