Skip to main content

load_raw_at

Function load_raw_at 

Source
pub fn load_raw_at(primary: &Path) -> Result<(BlobMeta, BlobData), CnResult>
Expand description

Load the blob file at primary and the payload store around it, anchoring the process’s blob layout on it, so a world written to data/0 reads data/1, data/2, … beside it. The anchor outlives the call because payloads stream off disk long after startup: a locator resolved mid-frame has no caller to carry the layout down from.

Only blob 0’s payload section is read here; overflow blobs (named by the manifest’s max_blob_index) start unloaded and BlobData::read() pulls each from disk the first time a locator needs it. Defs are not resolved into runtime Assets: that resolution depends on the client runtime registry, so it lives in the client blob::load shim.