file_real_all_binary

Declaration

file_read_all_binary :: fn (file: File, dest: *u8, size: usize) usize

Description

Read content of whole binary file into destination buffer and return count of written bytes. Destination buffer must be valid memory block of sufficient size.

Arguments

  • file File to be read.

  • dest Destination buffer.

  • size Count of bytes which will be copied from file into the buffer.

Result

Bytes written into buffer.

Declared in: file.bl