Skip to main content

Module binary

Module binary 

Source
Expand description

Binary payloads shared by content hash, with source spelling retained per use.

use rig_ecs::agent::content::binary::BinaryAssets;
let mut assets = BinaryAssets::default();
let id = assets.insert(vec![1, 2, 3])?;
assert_eq!(assets.get(id)?, &[1, 2, 3]);

Structs§

BinaryAssets
One world’s binary payload store. Explicit collection keeps only caller-supplied reachable handles; graph ownership, not a run’s lifetime, determines reachability. Host pins must be included along with graph references when collecting.
BinaryId
SHA-256 of the decoded payload bytes, independent of source and media type.
BinaryLimits
Limits checked before decoding or retaining an additional binary payload.
BinaryRecord
A single scene payload. Canonical base64 stores the bytes once; graph uses retain their own raw/base64 representation in BinaryEncoding.

Enums§

BinaryEncoding
Representation at a particular use of a shared binary payload.
BinaryError
Why a binary source or persisted asset cannot be used. Diagnostics contain no payload.
PartSource
A part’s source. URLs, file IDs, string data and unknown sources remain data; only raw and base64 binary payloads refer to the store.