pub unsafe extern "C" fn aws_byte_buf_init_from_file(
out_buf: *mut aws_byte_buf,
alloc: *mut aws_allocator,
filename: *const c_char
) -> c_int
Expand description
Reads ‘filename’ into ‘out_buf’. If successful, ‘out_buf’ is allocated and filled with the data; It is your responsibility to call ‘aws_byte_buf_clean_up()’ on it. Otherwise, ‘out_buf’ remains unused. In the very unfortunate case where some API needs to treat out_buf as a c_string, a null terminator is appended, but is not included as part of the length field.