IndexFilesystemBLFileSystem
BLFileSystem Namespace Reference

File-system utilities.

Functions

BLResult BLFileSystem::readFile(
const char* fileName,
BLArray<uint8_t>& dst,
size_t maxSize = 0,
)staticnoexcept[¶]

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.