threaddb  1.0
A file mapped memory container extension
threaddbTypes.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2019 by The ThreadDB Project
3  All Rights Reserved.
4 
5  ThreadDB undergoes the BSD License 2.0. You should have received a copy along with this program; if not, write to the ThreadDB Project.
6  To obtain a full unlimited version contact thethreaddbproject(at)gmail.com.
7 
8  threaddbTypes.h - Basic type definitions
9 */
10 
11 #pragma once
12 
13 #if defined(_WIN32)
14 #if defined(THREADDB_)
15 #define DLLEXPORT_ __declspec(dllexport)
16 #else
17 #define DLLEXPORT_ __declspec(dllimport)
18 #endif
19 #else
20 #define DLLEXPORT_
21 #endif
22 
23 #include <stdint.h>
24 #include <stddef.h>
25 
26 #if defined(__cplusplus)
27 extern "C"
28 {
29 #endif
30 
39  typedef struct threadDB_LinkInfo
40  {
41  size_t m_FilePos;
42  uint32_t m_FileID;
43  uint32_t m_Filling;
45 
56  typedef struct threadDB_ItemInfo
57  {
59 
60  uint32_t m_PackageSize;
62 
74  typedef struct threadDB_ReadInfo
75  {
77 
78  size_t m_BlockOffset;
79  char* m_pBuffer;
80  size_t m_BufferSize;
82 
83 
92  typedef enum {
96 
97  typedef int32_t threadDB_ReturnCode;
98 
99 #if defined(__cplusplus)
100 }
101 #endif
threadDB_ReadInfo::m_BlockOffset
size_t m_BlockOffset
Position of the current data item in the record.
Definition: threaddbTypes.h:78
threadDB_LinkInfo
struct threadDB_LinkInfo threadDB_LinkInfo
Data item entry index.
threadDB_ItemInfo::m_PackageSize
uint32_t m_PackageSize
Size of the data record in bytes.
Definition: threaddbTypes.h:60
threadDB_ReadInfo::m_BufferSize
size_t m_BufferSize
Size of the temporary read buffer.
Definition: threaddbTypes.h:80
eCopyFileTo
Indicates copy operation has to be executed.
Definition: threaddbTypes.h:93
threadDB_ItemInfo
struct threadDB_ItemInfo threadDB_ItemInfo
Random access managment information.
threadDB_ItemInfo::m_LinkInfo
threadDB_LinkInfo m_LinkInfo
Unique index of the data item.
Definition: threaddbTypes.h:58
threadDB_ReadInfo
Stream reading control information.
Definition: threaddbTypes.h:74
threadDB_ItemInfo
Random access managment information.
Definition: threaddbTypes.h:56
threadDB_ReadInfo::m_pBuffer
char * m_pBuffer
Temporary read buffer.
Definition: threaddbTypes.h:79
threadDB_ReadInfo::m_LinkInfo
threadDB_LinkInfo m_LinkInfo
Uniquely index of the data item.
Definition: threaddbTypes.h:76
threadDB_ReadInfo
struct threadDB_ReadInfo threadDB_ReadInfo
Stream reading control information.
threadDB_RelocationType
threadDB_RelocationType
Type of action to be performed when relocating a temporary database file.
Definition: threaddbTypes.h:92
threadDB_ReturnCode
int32_t threadDB_ReturnCode
Definition: threaddbTypes.h:97
eMoveFileTo
Indicates move operation has to be exectued.
Definition: threaddbTypes.h:94