BLFileSystem Namespace Reference

File-system utilities.

Functions

Function Documentation

BLResult BLFileSystem::readFile(const char* fileName, BLArray<uint8_t>& dst, size_t maxSize = 0, BLFileReadFlags readFlags = BL_FILE_READ_NO_FLAGS)static◆ 

Reads a file into the dst buffer.

Optionally you can set maxSize to non-zero value that would restrict the maximum bytes to read to such value. In addition, readFlags can be used to enable file mapping. See BLFileReadFlags for more details.