API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceContainerBlock
@codexo/exojs / assets / stable
One independently compressed run of the data section. Blocks tile the uncompressed section in order and without gaps, and a block boundary always falls on an entry boundary: a changed asset dirties its own blocks and no others, which is what makes an update proportional to what changed rather than to the size of the pack.
6
props
0
methods
0
events
Import
import { ContainerBlock } from '@codexo/exojs'One independently compressed run of the data section.
Blocks tile the uncompressed section in order and without gaps, and a block boundary always falls on an entry boundary: a changed asset dirties its own blocks and no others, which is what makes an update proportional to what changed rather than to the size of the pack.
Properties6
hash: stringSHA-256 of the **stored** bytes, lowercase hex, as the writer computed it. It names the bytes that travel, which is what lets a client tell a block it already holds from one it has to fetch. Reading a container checks the shape of this field and nothing more: the digest is not recomputed, so it identifies a block rather than attesting to it. What guards a decode is the block's own framing.
length: numberUncompressed byte length of that region.
offset: numberByte offset of the region this block covers within the uncompressed data section.
storedLength: numberStored byte length; equal to length when the codec is none.
storedOffset: numberByte offset of the stored bytes, relative to the header's dataOffset.
Source