Skip to main content

read_file_bytes

Function read_file_bytes 

Source
pub fn read_file_bytes(path: &Path) -> Option<Vec<u8>>
Expand description

Reads bounded file bytes for direct runtime consumers.

§Parameters

§Returns

Returns Some when crate::runtime::json_commands::read_file_bytes can produce a value and None otherwise.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::read_file_bytes(std::path::Path::new("fixture.json"));