IndexFilesystemBLFileCore
BLFileCore Struct Reference

A thin abstraction over a native OS file IO [C API].

Public Members

intptr_t BLFileCore::handle[¶]

A file handle - either a file descriptor used by POSIX or file handle used by Windows. On both platforms the handle is always intptr_t to make FFI easier (it's basically the size of a pointer / machine register).

Note
A handle of value -1 is considered invalid and/or uninitialized. This value also matches Windows API INVALID_HANDLE_VALUE, which is also defined to be -1.