Skip to main content

build_blob_record

Function build_blob_record 

Source
pub fn build_blob_record(
    name: &str,
    ty: BlobType,
    payload: &[u8],
) -> Option<Vec<u64>>
Expand description

Builds the words of a blob record of type ty named name that carries payload.

The name is written inline, so the record doesn’t depend on a string record elsewhere in the trace.

Returns None if the record is longer than crate::MAX_RECORD_SIZE_WORDS.