API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
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?: stringSHA-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: numberByte length of the asset's own bytes.
mime?: stringOptional MIME hint (informational; the factory determines type from bytes).
offset: numberByte offset within the uncompressed data section; a multiple of CONTAINER_ALIGNMENT.
options?: unknownOptional per-asset options forwarded to the handler.
source: stringThe 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: stringAsset type name (resolved to a constructor via the loader's type map).
Source