BLFileSystem Namespace Reference

File-system utilities.


Function Documentation

BLResult BLFileSystem::readFile(const char* fileName, BLArray<uint8_t>& dst, size_t maxSize = 0, uint32_t readFlags = 0)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.