mock_paver::hooks

Function read_firmware_custom_buffer_size

Source
pub fn read_firmware_custom_buffer_size<F>(
    callback: F,
) -> ReadFirmwareCustomBufferSize<F>
where F: Fn(Configuration, String) -> Result<(Vec<u8>, u64), Status>,
Expand description

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