mock_paver::hooks

Function read_asset_custom_buffer_size

Source
pub fn read_asset_custom_buffer_size<F>(
    callback: F,
) -> ReadAssetCustomBufferSize<F>
where F: Fn(Configuration, Asset) -> Result<(Vec<u8>, u64), Status>,
Expand description

A Hook for responding to ReadAsset calls that sets the size field of the returned fuchsia.mem.Buffer independently from the content of the VMO.