Skip to content

TBLFileReadFlag

File read flags used by TBLFileSystem.ReadFile.

Definition

Unit: Blend2D

type TBLFileReadFlag = (MmapEnabled, MmapAvoidSmall, MmapNoFallback)

See Also

Enumeration Values

MmapEnabled = 0

Use memory mapping to read the content of the file.

The destination buffer TBLArray<> would be configured to use the memory mapped buffer instead of allocating its own.


MmapAvoidSmall = 1

Avoid memory mapping of small files.

The size of small file is determined by Blend2D, however, you should expect it to be 16kB or 64kB depending on host operating system.


MmapNoFallback = 3

Do not fallback to regular read if memory mapping fails. It's worth noting that memory mapping would fail for files stored on filesystem that is not local (like a mounted network filesystem, etc...).