file_readWhole
This commit is contained in:
@@ -130,6 +130,10 @@ static inline Result(void) file_readBytesArrayExactly(FILE* f, Array(u8) dst){
|
||||
return file_readStructsExactly(f, dst.data, 1, dst.size);
|
||||
}
|
||||
|
||||
/// @brief allocates array of size equal `file_getSize()` and reads whole file
|
||||
/// @param out_buf output array allocated on heap
|
||||
Result(void) file_readWhole(FILE* f, Array(u8)* out_buf);
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// DIRECTORY //
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user