Load a file from the filesystem.
- Parameters
-
pFilename | The name of the file to load. |
pBytesRead | Optional pointer to a uint32 that will receive the size of the file loaded. |
extraBytes | Number of extra bytes to allocate at the end of the buffer. Initialises the first extra byte to 0 (useful for appending a NULL byte to the end of text files). |
- Returns
- A pointer to a new buffer containing the file that was loaded.