bitable
0.1
Ordered immutable key value storage system.
|
Read only memory mapped file support. More...
#include "bitablecommon.h"
Go to the source code of this file.
Data Structures | |
struct | BitableMemoryMappedFile |
Typedefs | |
typedef struct BitableMemoryMappedFileHandle | BitableMemoryMappedFileHandle |
typedef struct BitableMemoryMappedFile | BitableMemoryMappedFile |
Functions | |
BITABLE_API BitableResult | bitable_mmf_open (BitableMemoryMappedFile *memoryMappedFile, const char *path, BitableReadOpenFlags openFlags) |
BITABLE_API BitableResult | bitable_mmf_close (BitableMemoryMappedFile *memoryMappedFile) |
Read only memory mapped file support.
typedef struct BitableMemoryMappedFile BitableMemoryMappedFile |
Memory mapped file Includes the handle, size of the mapping and the address of the mapping. The handle is OS specific, but the size and address are standardstandard.
typedef struct BitableMemoryMappedFileHandle BitableMemoryMappedFileHandle |
OS specific handle for a memory mapped file.
BITABLE_API BitableResult bitable_mmf_close | ( | BitableMemoryMappedFile * | memoryMappedFile | ) |
Closes a read-only memory mapped file that has been opened by bitable_mmf_open
memoryMappedFile | This will be populated with the memory mapped file details and should be passed to close when done. Does not null check. |
BITABLE_API BitableResult bitable_mmf_open | ( | BitableMemoryMappedFile * | memoryMappedFile, |
const char * | path, | ||
BitableReadOpenFlags | openFlags | ||
) |
Opens a read-only memory mapped file. Will map the entire file.
[out] | memoryMappedFile | This will be populated with the memory mapped file details and should be passed to close when done. Does not null check. |
path | This is the path of the file that will be mapped into memory. This is expected to be in a UTF8 encoding. Does not null check. | |
openFlags | This is the options for opening the memory mapped file. |