| 128 | } |
| 129 | |
| 130 | void FileRead(NULLCArray arr, File* file) |
| 131 | { |
| 132 | if(!file->handle) |
| 133 | { |
| 134 | nullcThrowError("Cannot read from a closed file."); |
| 135 | return; |
| 136 | } |
| 137 | if(arr.len != fread(arr.ptr, 1, arr.len, file->handle)) |
| 138 | nullcThrowError("Failed to read from a file."); |
| 139 | } |
| 140 | void FileWrite(NULLCArray arr, File* file) |
| 141 | { |
| 142 | if(!file->handle) |
nothing calls this directly
no test coverage detected