Function Blam::Utils::IO::GetFileAsBinary¶
Defined in File io.h
Function Documentation¶
-
HRESULT
Blam::Utils::IO
::
GetFileAsBinary
(std::string path, void *data, DWORD *size)¶ Reads a file as raw binary data.
- Return
S_OK
if the file was read without error,E_FAIL
if the file could not be read.- Parameters
path
: - The path of the file to read from.data
: - Address to write data to.size
: - Pointer of the size of the resource.