Skip to main content

frame

Function frame 

Source
pub fn frame(adapter_key: &str, payload: &[u8]) -> Vec<u8> ⓘ
Expand description

Wraps a raw PipelineCache::get_data() payload in the validated header unframe checks, tagging it with the adapter it was produced on.

Layout: MAGIC (8) · key_len: u32 LE · key bytes · payload_len: u32 LE · payload bytes.