Skip to main content

get_blob_field

Function get_blob_field 

Source
pub fn get_blob_field<const N: usize, const CODE: i32>(
    slot: i32,
    _: SField<Blob<N>, CODE>,
) -> Result<Blob<N>>
Expand description

Retrieves a Blob<N> field from the ledger object cached in slot, writing the host’s bytes directly into the returned Blob<N>’s own storage. See the comment above this function for why Blob<N> gets a dedicated accessor instead of using get_field.