| 3 |
tristanc |
1 |
#include "pch.h"
|
|
|
2 |
#pragma hdrstop
|
|
|
3 |
|
|
|
4 |
#include "CDataStore.h"
|
|
|
5 |
|
|
|
6 |
/****************************************************************************
|
|
|
7 |
*
|
|
|
8 |
* Memory addresses
|
|
|
9 |
*
|
|
|
10 |
***/
|
|
|
11 |
#define CDATASTORE__INITIALIZE 0x00401050;
|
|
|
12 |
#define CDATASTORE__RESET 0x004010E0;
|
|
|
13 |
#define CDATASTORE__DESTROY 0x00403880;
|
|
|
14 |
#define CDATASTORE__SETCHAR 0x00417C80;
|
|
|
15 |
#define CDATASTORE__SETUCHAR 0x00417CD0;
|
|
|
16 |
#define CDATASTORE__SETSHORT 0x00417D20;
|
|
|
17 |
#define CDATASTORE__SETUSHORT 0x00417D70;
|
|
|
18 |
#define CDATASTORE__SETINT 0x00417DC0;
|
|
|
19 |
#define CDATASTORE__SETUINT 0x00417E10;
|
|
|
20 |
#define CDATASTORE__SETLONG 0x00417E60;
|
|
|
21 |
#define CDATASTORE__SETULONG 0x00417EB0;
|
|
|
22 |
#define CDATASTORE__SETINT64 0x00417F00;
|
|
|
23 |
#define CDATASTORE__SETUINT64 0x00417F60;
|
|
|
24 |
#define CDATASTORE__SETFLOAT 0x00417FC0;
|
|
|
25 |
#define CDATASTORE__PUTCHAR 0x00418010;
|
|
|
26 |
#define CDATASTORE__PUTUCHAR 0x00418070;
|
|
|
27 |
#define CDATASTORE__PUTSHORT 0x004180D0;
|
|
|
28 |
#define CDATASTORE__PUTUSHORT 0x00418130;
|
|
|
29 |
#define CDATASTORE__PUTINT 0x0047B0A0;
|
|
|
30 |
#define CDATASTORE__PUTUINT 0x0047B0A0;
|
|
|
31 |
#define CDATASTORE__PUTLONG 0x00418250;
|
|
|
32 |
#define CDATASTORE__PUTULONG 0x004182B0;
|
|
|
33 |
#define CDATASTORE__PUTINT64 0x0047B100;
|
|
|
34 |
#define CDATASTORE__PUTUINT64 0x0047B100;
|
|
|
35 |
#define CDATASTORE__PUTFLOAT 0x0047B160;
|
| 5 |
tristanc |
36 |
#define CDATASTORE__PUTSTRING 0x0047B300;
|
| 3 |
tristanc |
37 |
#define CDATASTORE__PUTARRAY 0x00418570;
|
|
|
38 |
#define CDATASTORE__PUTARRAY2 0x00418680;
|
|
|
39 |
#define CDATASTORE__PUTARRAY3 0x00418790;
|
|
|
40 |
#define CDATASTORE__PUTARRAY4 0x004188B0;
|
|
|
41 |
#define CDATASTORE__PUTARRAY5 0x004189D0;
|
|
|
42 |
#define CDATASTORE__PUTDATA 0x00418C10;
|
|
|
43 |
#define CDATASTORE__GETCHAR 0x00418C30;
|
|
|
44 |
#define CDATASTORE__GETUCHAR 0x00418CB0;
|
|
|
45 |
#define CDATASTORE__GETSHORT 0x00418D30;
|
|
|
46 |
#define CDATASTORE__GETUSHORT 0x00418DB0;
|
|
|
47 |
#define CDATASTORE__GETINT 0x00418E30;
|
|
|
48 |
#define CDATASTORE__GETUINT 0x00418EB0;
|
|
|
49 |
#define CDATASTORE__GETLONG 0x00418F30;
|
|
|
50 |
#define CDATASTORE__GETULONG 0x00418FB0;
|
|
|
51 |
#define CDATASTORE__GETINT64 0x00419030;
|
|
|
52 |
#define CDATASTORE__GETUINT64 0x004190B0;
|
|
|
53 |
#define CDATASTORE__GETFLOAT 0x00419130;
|
|
|
54 |
#define CDATASTORE__GETSTRING 0x004191B0;
|
|
|
55 |
#define CDATASTORE__GETSTRING2 0x004192E0;
|
|
|
56 |
#define CDATASTORE__GETARRAY 0x00419400;
|
|
|
57 |
#define CDATASTORE__GETARRAY2 0x00419510;
|
|
|
58 |
#define CDATASTORE__GETARRAY3 0x00419620;
|
|
|
59 |
#define CDATASTORE__GETARRAY4 0x00419740;
|
|
|
60 |
#define CDATASTORE__GETARRAY5 0x00419860;
|
|
|
61 |
#define CDATASTORE__GETDATA 0x00419AA0;
|
|
|
62 |
#define CDATASTORE__GETBUFFERPARAMS 0x00419B50;
|
|
|
63 |
#define CDATASTORE__DETACHBUFFER 0x00419B80;
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
/****************************************************************************
|
|
|
67 |
*
|
|
|
68 |
* Private
|
|
|
69 |
*
|
|
|
70 |
***/
|
|
|
71 |
CDataStore* (__thiscall* CDataStore__InitializePtr) (CDataStore* pData) = *(CDataStore*(__thiscall *)(CDataStore *))CDATASTORE__INITIALIZE;
|
|
|
72 |
CDataStore* (__thiscall* CDataStore__ResetPtr) (CDataStore* pData) = *(CDataStore*(__thiscall *)(CDataStore *))CDATASTORE__RESET;
|
|
|
73 |
CDataStore* (__thiscall* CDataStore__DestroyPtr) (CDataStore* pData) = *(CDataStore*(__thiscall *)(CDataStore *))CDATASTORE__DESTROY;
|
|
|
74 |
CDataStore& (__thiscall* CDataStore__SetCharPtr) (CDataStore* pData, DWORD pos, CHAR bytes) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD,CHAR))CDATASTORE__SETCHAR;
|
|
|
75 |
CDataStore& (__thiscall* CDataStore__SetUCharPtr) (CDataStore* pData, DWORD pos, UCHAR bytes) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD,UCHAR))CDATASTORE__SETUCHAR;
|
|
|
76 |
CDataStore& (__thiscall* CDataStore__SetShortPtr) (CDataStore* pData, DWORD pos, SHORT bytes) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD,SHORT))CDATASTORE__SETSHORT;
|
|
|
77 |
CDataStore& (__thiscall* CDataStore__SetUShortPtr) (CDataStore* pData, DWORD pos, USHORT bytes) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD,USHORT))CDATASTORE__SETSHORT;
|
|
|
78 |
CDataStore& (__thiscall* CDataStore__SetIntPtr) (CDataStore* pData, DWORD pos, INT bytes) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD,INT))CDATASTORE__SETINT;
|
|
|
79 |
CDataStore& (__thiscall* CDataStore__SetUIntPtr) (CDataStore* pData, DWORD pos, DWORD bytes) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD,DWORD))CDATASTORE__SETUINT;
|
|
|
80 |
CDataStore& (__thiscall* CDataStore__SetLongPtr) (CDataStore* pData, DWORD pos, long bytes) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD,long))CDATASTORE__SETLONG;
|
|
|
81 |
CDataStore& (__thiscall* CDataStore__SetULongPtr) (CDataStore* pData, DWORD pos, DWORD bytes) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD,DWORD))CDATASTORE__SETULONG;
|
|
|
82 |
CDataStore& (__thiscall* CDataStore__SetInt64Ptr) (CDataStore* pData, DWORD pos, INT64 bytes) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD,INT64))CDATASTORE__SETINT64;
|
|
|
83 |
CDataStore& (__thiscall* CDataStore__SetUInt64Ptr) (CDataStore* pData, DWORD pos, UINT64 bytes) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD,UINT64))CDATASTORE__SETUINT64;
|
|
|
84 |
CDataStore& (__thiscall* CDataStore__SetFloatPtr) (CDataStore* pData, DWORD pos, float bytes) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD,float))CDATASTORE__SETFLOAT;
|
|
|
85 |
CDataStore& (__thiscall* CDataStore__PutCharPtr) (CDataStore* pData, char val) = *(CDataStore&(__thiscall*)(CDataStore*,char))CDATASTORE__PUTCHAR;
|
|
|
86 |
CDataStore& (__thiscall* CDataStore__PutUCharPtr) (CDataStore* pData, UCHAR val) = *(CDataStore&(__thiscall*)(CDataStore*,UCHAR))CDATASTORE__PUTUCHAR;
|
|
|
87 |
CDataStore& (__thiscall* CDataStore__PutShortPtr) (CDataStore* pData, short val) = *(CDataStore&(__thiscall*)(CDataStore*,short))CDATASTORE__PUTSHORT;
|
|
|
88 |
CDataStore& (__thiscall* CDataStore__PutUShortPtr) (CDataStore* pData, USHORT val) = *(CDataStore&(__thiscall*)(CDataStore*,USHORT))CDATASTORE__PUTUSHORT;
|
|
|
89 |
CDataStore& (__thiscall* CDataStore__PutIntPtr) (CDataStore* pData, int val) = *(CDataStore&(__thiscall*)(CDataStore*,int))CDATASTORE__PUTINT;
|
|
|
90 |
CDataStore& (__thiscall* CDataStore__PutUIntPtr) (CDataStore* pData, UINT val) = *(CDataStore&(__thiscall*)(CDataStore*,UINT))CDATASTORE__PUTUINT;
|
|
|
91 |
CDataStore& (__thiscall* CDataStore__PutLongPtr) (CDataStore* pData, long val) = *(CDataStore&(__thiscall*)(CDataStore*,long))CDATASTORE__PUTLONG;
|
|
|
92 |
CDataStore& (__thiscall* CDataStore__PutULongPtr) (CDataStore* pData, DWORD val) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD))CDATASTORE__PUTULONG;
|
|
|
93 |
CDataStore& (__thiscall* CDataStore__PutInt64Ptr) (CDataStore* pData, INT64 val) = *(CDataStore&(__thiscall*)(CDataStore*,INT64))CDATASTORE__PUTINT64;
|
|
|
94 |
CDataStore& (__thiscall* CDataStore__PutUInt64Ptr) (CDataStore* pData, UINT64 val) = *(CDataStore&(__thiscall*)(CDataStore*,UINT64))CDATASTORE__PUTUINT64;
|
|
|
95 |
CDataStore& (__thiscall* CDataStore__PutFloatPtr) (CDataStore* pData, float val) = *(CDataStore&(__thiscall*)(CDataStore*,float))CDATASTORE__PUTFLOAT;
|
|
|
96 |
CDataStore& (__thiscall* CDataStore__PutStringPtr) (CDataStore* pData, LPCSTR pval) = *(CDataStore&(__thiscall*)(CDataStore*,LPCSTR))CDATASTORE__PUTSTRING;
|
|
|
97 |
CDataStore& (__thiscall* CDataStore__PutArrayPtr) (CDataStore* pData, UCHAR const* pval, DWORD bytes) = *(CDataStore&(__thiscall*)(CDataStore*,UCHAR const*,DWORD))CDATASTORE__PUTARRAY;
|
|
|
98 |
CDataStore& (__thiscall* CDataStore__PutArrayPtr2) (CDataStore* pData, USHORT const* pval, UINT bytes) = *(CDataStore&(__thiscall*)(CDataStore*,USHORT const*,UINT))CDATASTORE__PUTARRAY2;
|
|
|
99 |
CDataStore& (__thiscall* CDataStore__PutArrayPtr3) (CDataStore* pData, ULONG const* pval, UINT bytes) = *(CDataStore&(__thiscall*)(CDataStore*,ULONG const*,UINT))CDATASTORE__PUTARRAY3;
|
|
|
100 |
CDataStore& (__thiscall* CDataStore__PutArrayPtr4) (CDataStore* pData, UINT64 const* pval, UINT bytes) = *(CDataStore&(__thiscall*)(CDataStore*,UINT64 const*,UINT))CDATASTORE__PUTARRAY4;
|
|
|
101 |
CDataStore& (__thiscall* CDataStore__PutArrayPtr5) (CDataStore* pData, float const* pval, UINT bytes) = *(CDataStore&(__thiscall*)(CDataStore*,float const*,UINT))CDATASTORE__PUTARRAY5;
|
|
|
102 |
CDataStore& (__thiscall* CDataStore__PutDataPtr) (CDataStore* pData, const void* pval, UINT bytes) = *(CDataStore&(__thiscall*)(CDataStore*,const void*,UINT))CDATASTORE__PUTDATA;
|
|
|
103 |
CDataStore& (__thiscall* CDataStore__GetCharPtr) (CDataStore* pData, char& rval) = *(CDataStore&(__thiscall*)(CDataStore*,char&))CDATASTORE__GETCHAR;
|
|
|
104 |
CDataStore& (__thiscall* CDataStore__GetUCharPtr) (CDataStore* pData, UCHAR& rval) = *(CDataStore&(__thiscall*)(CDataStore*,UCHAR&))CDATASTORE__GETUCHAR;
|
|
|
105 |
CDataStore& (__thiscall* CDataStore__GetShortPtr) (CDataStore* pData, short& rval) = *(CDataStore&(__thiscall*)(CDataStore*,short&))CDATASTORE__GETSHORT;
|
|
|
106 |
CDataStore& (__thiscall* CDataStore__GetUShortPtr) (CDataStore* pData, USHORT& rval) = *(CDataStore&(__thiscall*)(CDataStore*,USHORT&))CDATASTORE__GETUSHORT;
|
|
|
107 |
CDataStore& (__thiscall* CDataStore__GetIntPtr) (CDataStore* pData, int& rval) = *(CDataStore&(__thiscall*)(CDataStore*,int&))CDATASTORE__GETINT;
|
|
|
108 |
CDataStore& (__thiscall* CDataStore__GetUIntPtr) (CDataStore* pData, UINT& rval) = *(CDataStore&(__thiscall*)(CDataStore*,UINT&))CDATASTORE__GETUINT;
|
|
|
109 |
CDataStore& (__thiscall* CDataStore__GetLongPtr) (CDataStore* pData, long& rval) = *(CDataStore&(__thiscall*)(CDataStore*,long&))CDATASTORE__GETLONG;
|
|
|
110 |
CDataStore& (__thiscall* CDataStore__GetULongPtr) (CDataStore* pData, ULONG& rval) = *(CDataStore&(__thiscall*)(CDataStore*,ULONG&))CDATASTORE__GETULONG;
|
|
|
111 |
CDataStore& (__thiscall* CDataStore__GetInt64Ptr) (CDataStore* pData, INT64& rval) = *(CDataStore&(__thiscall*)(CDataStore*,INT64&))CDATASTORE__GETINT64;
|
|
|
112 |
CDataStore& (__thiscall* CDataStore__GetUInt64Ptr) (CDataStore* pData, UINT64& rval) = *(CDataStore&(__thiscall*)(CDataStore*,UINT64&))CDATASTORE__GETUINT64;
|
|
|
113 |
CDataStore& (__thiscall* CDataStore__GetFloatPtr) (CDataStore* pData, float& rval) = *(CDataStore&(__thiscall*)(CDataStore*,float&))CDATASTORE__GETFLOAT;
|
|
|
114 |
CDataStore& (__thiscall* CDataStore__GetStringPtr) (CDataStore* pData, LPSTR pval, DWORD maxChars) = *(CDataStore&(__thiscall*)(CDataStore*,LPSTR,DWORD))CDATASTORE__GETSTRING;
|
|
|
115 |
CDataStore& (__thiscall* CDataStore__GetStringPtr2) (CDataStore* pData, LPWSTR pval, DWORD maxChars) = *(CDataStore&(__thiscall*)(CDataStore*,LPWSTR,DWORD))CDATASTORE__GETSTRING2;
|
|
|
116 |
CDataStore& (__thiscall* CDataStore__GetArrayPtr) (CDataStore* pData, UCHAR* pval, UINT count) = *(CDataStore&(__thiscall*)(CDataStore*,UCHAR*,UINT))CDATASTORE__GETARRAY;
|
|
|
117 |
CDataStore& (__thiscall* CDataStore__GetArrayPtr2) (CDataStore* pData, USHORT* pval, UINT count) = *(CDataStore&(__thiscall*)(CDataStore*,USHORT*,UINT))CDATASTORE__GETARRAY2;
|
|
|
118 |
CDataStore& (__thiscall* CDataStore__GetArrayPtr3) (CDataStore* pData, ULONG* pval, UINT count) = *(CDataStore&(__thiscall*)(CDataStore*,ULONG*,UINT))CDATASTORE__GETARRAY3;
|
|
|
119 |
CDataStore& (__thiscall* CDataStore__GetArrayPtr4) (CDataStore* pData, UINT64* pval, UINT count) = *(CDataStore&(__thiscall*)(CDataStore*,UINT64*,UINT))CDATASTORE__GETARRAY4;
|
|
|
120 |
CDataStore& (__thiscall* CDataStore__GetArrayPtr5) (CDataStore* pData, float* pval, UINT count) = *(CDataStore&(__thiscall*)(CDataStore*,float*,UINT))CDATASTORE__GETARRAY5;
|
|
|
121 |
CDataStore& (__thiscall* CDataStore__GetDataPtr) (CDataStore* pData, void* pval, UINT bytes) = *(CDataStore&(__thiscall*)(CDataStore*,void*,UINT))CDATASTORE__GETDATA;
|
|
|
122 |
void (__thiscall* CDataStore__GetBufferParamsPtr) (const CDataStore* pData, const void** dataPtr, UINT* sizePtr, UINT* allocPtr) = *(void(__thiscall*)(const CDataStore*,const void**,UINT*,UINT*))CDATASTORE__GETBUFFERPARAMS;
|
|
|
123 |
void (__thiscall* CDataStore__DetachBufferPtr) (CDataStore* pData, void** dataPtr, UINT* sizePtr, UINT* allocPtr) = *(void (__thiscall*)(CDataStore*,void**,UINT*,UINT*))CDATASTORE__DETACHBUFFER;
|
|
|
124 |
|
|
|
125 |
//=======================================================================
|
|
|
126 |
void CDataStore::Initialize(CDataStore* pData)
|
|
|
127 |
{
|
|
|
128 |
CDataStore__InitializePtr(pData);
|
|
|
129 |
}
|
|
|
130 |
|
|
|
131 |
//=======================================================================
|
|
|
132 |
void CDataStore::Destroy(CDataStore* pData)
|
|
|
133 |
{
|
|
|
134 |
CDataStore__DestroyPtr(pData);
|
|
|
135 |
}
|
|
|
136 |
|
|
|
137 |
|
|
|
138 |
/***************************************************************************
|
|
|
139 |
*
|
|
|
140 |
* External
|
|
|
141 |
*
|
|
|
142 |
***/
|
|
|
143 |
//=======================================================================
|
|
|
144 |
CDataStore::CDataStore()
|
|
|
145 |
{
|
|
|
146 |
Initialize(this);
|
|
|
147 |
}
|
|
|
148 |
|
|
|
149 |
//=======================================================================
|
|
|
150 |
CDataStore::~CDataStore()
|
|
|
151 |
{
|
|
|
152 |
Destroy(this);
|
|
|
153 |
}
|
|
|
154 |
|
|
|
155 |
//=======================================================================
|
|
|
156 |
CDataStore* CDataStore::Reset()
|
|
|
157 |
{
|
|
|
158 |
return CDataStore__ResetPtr(this);
|
|
|
159 |
}
|
|
|
160 |
|
|
|
161 |
//=======================================================================
|
|
|
162 |
CDataStore& CDataStore::Set(DWORD pos, char bytes)
|
|
|
163 |
{
|
|
|
164 |
return CDataStore__SetCharPtr(this,pos,bytes);
|
|
|
165 |
}
|
|
|
166 |
|
|
|
167 |
//=======================================================================
|
|
|
168 |
CDataStore& CDataStore::Set(DWORD pos, UCHAR bytes)
|
|
|
169 |
{
|
|
|
170 |
return CDataStore__SetUCharPtr(this, pos, bytes);
|
|
|
171 |
}
|
|
|
172 |
|
|
|
173 |
//=======================================================================
|
|
|
174 |
CDataStore& CDataStore::Set(DWORD pos, short bytes)
|
|
|
175 |
{
|
|
|
176 |
return CDataStore__SetShortPtr(this, pos, bytes);
|
|
|
177 |
}
|
|
|
178 |
|
|
|
179 |
//=======================================================================
|
|
|
180 |
CDataStore& CDataStore::Set(DWORD pos, USHORT bytes)
|
|
|
181 |
{
|
|
|
182 |
return CDataStore__SetUShortPtr(this, pos, bytes);
|
|
|
183 |
}
|
|
|
184 |
|
|
|
185 |
//=======================================================================
|
|
|
186 |
CDataStore& CDataStore::Set(DWORD pos, int bytes)
|
|
|
187 |
{
|
|
|
188 |
return CDataStore__SetIntPtr(this, pos, bytes);
|
|
|
189 |
}
|
|
|
190 |
|
|
|
191 |
//=======================================================================
|
|
|
192 |
CDataStore& CDataStore::Set(DWORD pos, UINT bytes)
|
|
|
193 |
{
|
|
|
194 |
return CDataStore__SetUIntPtr(this, pos, bytes);
|
|
|
195 |
}
|
|
|
196 |
|
|
|
197 |
//=======================================================================
|
|
|
198 |
CDataStore& CDataStore::Set(DWORD pos, long bytes)
|
|
|
199 |
{
|
|
|
200 |
return CDataStore__SetLongPtr(this, pos, bytes);
|
|
|
201 |
}
|
|
|
202 |
|
|
|
203 |
//=======================================================================
|
|
|
204 |
CDataStore& CDataStore::Set(DWORD pos, ULONG bytes)
|
|
|
205 |
{
|
|
|
206 |
return CDataStore__SetULongPtr(this, pos, bytes);
|
|
|
207 |
}
|
|
|
208 |
|
|
|
209 |
//=======================================================================
|
|
|
210 |
CDataStore& CDataStore::Set(DWORD pos, INT64 bytes)
|
|
|
211 |
{
|
|
|
212 |
return CDataStore__SetInt64Ptr(this, pos, bytes);
|
|
|
213 |
}
|
|
|
214 |
|
|
|
215 |
//=======================================================================
|
|
|
216 |
CDataStore& CDataStore::Set(DWORD pos, UINT64 bytes)
|
|
|
217 |
{
|
|
|
218 |
return CDataStore__SetUInt64Ptr(this, pos, bytes);
|
|
|
219 |
}
|
|
|
220 |
|
|
|
221 |
//=======================================================================
|
|
|
222 |
CDataStore& CDataStore::Set(DWORD pos, float bytes)
|
|
|
223 |
{
|
|
|
224 |
return CDataStore__SetFloatPtr(this, pos, bytes);
|
|
|
225 |
}
|
|
|
226 |
|
|
|
227 |
//=======================================================================
|
|
|
228 |
CDataStore& CDataStore::Put(char val)
|
|
|
229 |
{
|
|
|
230 |
return CDataStore__PutCharPtr(this,val);
|
|
|
231 |
}
|
|
|
232 |
|
|
|
233 |
//=======================================================================
|
|
|
234 |
CDataStore& CDataStore::Put(UCHAR val)
|
|
|
235 |
{
|
|
|
236 |
return CDataStore__PutUCharPtr(this, val);
|
|
|
237 |
}
|
|
|
238 |
|
|
|
239 |
//=======================================================================
|
|
|
240 |
CDataStore& CDataStore::Put(short val)
|
|
|
241 |
{
|
|
|
242 |
return CDataStore__PutShortPtr(this, val);
|
|
|
243 |
}
|
|
|
244 |
|
|
|
245 |
//=======================================================================
|
|
|
246 |
CDataStore& CDataStore::Put(USHORT val)
|
|
|
247 |
{
|
|
|
248 |
return CDataStore__PutUShortPtr(this, val);
|
|
|
249 |
}
|
|
|
250 |
|
|
|
251 |
//=======================================================================
|
|
|
252 |
CDataStore& CDataStore::Put(int val)
|
|
|
253 |
{
|
|
|
254 |
return CDataStore__PutIntPtr(this, val);
|
|
|
255 |
}
|
|
|
256 |
|
|
|
257 |
//=======================================================================
|
|
|
258 |
CDataStore& CDataStore::Put(UINT val)
|
|
|
259 |
{
|
|
|
260 |
return CDataStore__PutUIntPtr(this, val);
|
|
|
261 |
}
|
|
|
262 |
|
|
|
263 |
//=======================================================================
|
|
|
264 |
CDataStore& CDataStore::Put(long val)
|
|
|
265 |
{
|
|
|
266 |
return CDataStore__PutLongPtr(this, val);
|
|
|
267 |
}
|
|
|
268 |
|
|
|
269 |
//=======================================================================
|
|
|
270 |
CDataStore& CDataStore::Put(ULONG val)
|
|
|
271 |
{
|
|
|
272 |
return CDataStore__PutULongPtr(this, val);
|
|
|
273 |
}
|
|
|
274 |
|
|
|
275 |
//=======================================================================
|
|
|
276 |
CDataStore& CDataStore::Put(INT64 val)
|
|
|
277 |
{
|
|
|
278 |
return CDataStore__PutInt64Ptr(this, val);
|
|
|
279 |
}
|
|
|
280 |
|
|
|
281 |
//=======================================================================
|
|
|
282 |
CDataStore& CDataStore::Put(UINT64 val)
|
|
|
283 |
{
|
|
|
284 |
return CDataStore__PutUInt64Ptr(this, val);
|
|
|
285 |
}
|
|
|
286 |
|
|
|
287 |
//=======================================================================
|
|
|
288 |
CDataStore& CDataStore::Put(float val)
|
|
|
289 |
{
|
|
|
290 |
return CDataStore__PutFloatPtr(this, val);
|
|
|
291 |
}
|
|
|
292 |
|
|
|
293 |
//=======================================================================
|
|
|
294 |
CDataStore& CDataStore::PutString(char const* pval)
|
|
|
295 |
{
|
|
|
296 |
return CDataStore__PutStringPtr(this,pval);
|
|
|
297 |
}
|
|
|
298 |
|
|
|
299 |
//=======================================================================
|
|
|
300 |
CDataStore& CDataStore::PutArray(UCHAR const* pval, DWORD bytes)
|
|
|
301 |
{
|
|
|
302 |
return CDataStore__PutArrayPtr(this,pval,bytes);
|
|
|
303 |
}
|
|
|
304 |
|
|
|
305 |
//=======================================================================
|
|
|
306 |
CDataStore& CDataStore::PutArray(USHORT const* pval, DWORD bytes)
|
|
|
307 |
{
|
|
|
308 |
return CDataStore__PutArrayPtr2(this, pval, bytes);
|
|
|
309 |
}
|
|
|
310 |
|
|
|
311 |
//=======================================================================
|
|
|
312 |
CDataStore& CDataStore::PutArray(ULONG const* pval, DWORD bytes)
|
|
|
313 |
{
|
|
|
314 |
return CDataStore__PutArrayPtr3(this, pval, bytes);
|
|
|
315 |
}
|
|
|
316 |
|
|
|
317 |
//=======================================================================
|
|
|
318 |
CDataStore& CDataStore::PutArray (UINT64 const* pval, DWORD bytes)
|
|
|
319 |
{
|
|
|
320 |
return CDataStore__PutArrayPtr4(this, pval, bytes);
|
|
|
321 |
}
|
|
|
322 |
|
|
|
323 |
//=======================================================================
|
|
|
324 |
CDataStore& CDataStore::PutArray (float const* pval, DWORD bytes)
|
|
|
325 |
{
|
|
|
326 |
return CDataStore__PutArrayPtr5(this, pval, bytes);
|
|
|
327 |
}
|
|
|
328 |
|
|
|
329 |
//=======================================================================
|
|
|
330 |
CDataStore& CDataStore::PutData (void const* pval, DWORD bytes)
|
|
|
331 |
{
|
|
|
332 |
return CDataStore__PutDataPtr(this,pval,bytes);
|
|
|
333 |
}
|
|
|
334 |
|
|
|
335 |
//=======================================================================
|
|
|
336 |
CDataStore& CDataStore::Get(char& pval)
|
|
|
337 |
{
|
|
|
338 |
return CDataStore__GetCharPtr(this,pval);
|
|
|
339 |
}
|
|
|
340 |
|
|
|
341 |
//=======================================================================
|
|
|
342 |
CDataStore& CDataStore::Get(UCHAR& pval)
|
|
|
343 |
{
|
|
|
344 |
return CDataStore__GetUCharPtr(this, pval);
|
|
|
345 |
}
|
|
|
346 |
|
|
|
347 |
//=======================================================================
|
|
|
348 |
CDataStore& CDataStore::Get(short& pval)
|
|
|
349 |
{
|
|
|
350 |
return CDataStore__GetShortPtr(this, pval);
|
|
|
351 |
}
|
|
|
352 |
|
|
|
353 |
//=======================================================================
|
|
|
354 |
CDataStore& CDataStore::Get(USHORT& pval)
|
|
|
355 |
{
|
|
|
356 |
return CDataStore__GetUShortPtr(this, pval);
|
|
|
357 |
}
|
|
|
358 |
|
|
|
359 |
//=======================================================================
|
|
|
360 |
CDataStore& CDataStore::Get(int& pval)
|
|
|
361 |
{
|
|
|
362 |
return CDataStore__GetIntPtr(this, pval);
|
|
|
363 |
}
|
|
|
364 |
|
|
|
365 |
//=======================================================================
|
|
|
366 |
CDataStore& CDataStore::Get(UINT& pval)
|
|
|
367 |
{
|
|
|
368 |
return CDataStore__GetUIntPtr(this, pval);
|
|
|
369 |
}
|
|
|
370 |
|
|
|
371 |
//=======================================================================
|
|
|
372 |
CDataStore& CDataStore::Get(long& pval)
|
|
|
373 |
{
|
|
|
374 |
return CDataStore__GetLongPtr(this, pval);
|
|
|
375 |
}
|
|
|
376 |
|
|
|
377 |
//=======================================================================
|
|
|
378 |
CDataStore& CDataStore::Get(ULONG& pval)
|
|
|
379 |
{
|
|
|
380 |
return CDataStore__GetULongPtr(this, pval);
|
|
|
381 |
}
|
|
|
382 |
|
|
|
383 |
//=======================================================================
|
|
|
384 |
CDataStore& CDataStore::Get(INT64& pval)
|
|
|
385 |
{
|
|
|
386 |
return CDataStore__GetInt64Ptr(this, pval);
|
|
|
387 |
}
|
|
|
388 |
|
|
|
389 |
//=======================================================================
|
|
|
390 |
CDataStore& CDataStore::Get(UINT64& pval)
|
|
|
391 |
{
|
|
|
392 |
return CDataStore__GetUInt64Ptr(this, pval);
|
|
|
393 |
}
|
|
|
394 |
|
|
|
395 |
//=======================================================================
|
|
|
396 |
CDataStore& CDataStore::Get(float& pval)
|
|
|
397 |
{
|
|
|
398 |
return CDataStore__GetFloatPtr(this, pval);
|
|
|
399 |
}
|
|
|
400 |
|
|
|
401 |
//=======================================================================
|
|
|
402 |
CDataStore& CDataStore::GetString(LPSTR pval, DWORD maxChars)
|
|
|
403 |
{
|
|
|
404 |
return CDataStore__GetStringPtr(this,pval,maxChars);
|
|
|
405 |
}
|
|
|
406 |
|
|
|
407 |
//=======================================================================
|
|
|
408 |
CDataStore& CDataStore::GetString(LPWSTR pval, DWORD maxChars)
|
|
|
409 |
{
|
|
|
410 |
return CDataStore__GetStringPtr2(this, pval, maxChars);
|
|
|
411 |
}
|
|
|
412 |
|
|
|
413 |
//=======================================================================
|
|
|
414 |
CDataStore& CDataStore::GetArray(UCHAR* pval, DWORD count)
|
|
|
415 |
{
|
|
|
416 |
return CDataStore__GetArrayPtr(this, pval, count);
|
|
|
417 |
}
|
|
|
418 |
|
|
|
419 |
//=======================================================================
|
|
|
420 |
CDataStore& CDataStore::GetArray(USHORT* pval, DWORD count)
|
|
|
421 |
{
|
|
|
422 |
return CDataStore__GetArrayPtr2(this, pval, count);
|
|
|
423 |
}
|
|
|
424 |
|
|
|
425 |
//=======================================================================
|
|
|
426 |
CDataStore& CDataStore::GetArray(ULONG* pval, DWORD count)
|
|
|
427 |
{
|
|
|
428 |
return CDataStore__GetArrayPtr3(this, pval, count);
|
|
|
429 |
}
|
|
|
430 |
|
|
|
431 |
//=======================================================================
|
|
|
432 |
CDataStore& CDataStore::GetArray(UINT64* pval, DWORD count)
|
|
|
433 |
{
|
|
|
434 |
return CDataStore__GetArrayPtr4(this, pval, count);
|
|
|
435 |
}
|
|
|
436 |
|
|
|
437 |
//=======================================================================
|
|
|
438 |
CDataStore& CDataStore::GetArray(float* pval, DWORD count)
|
|
|
439 |
{
|
|
|
440 |
return CDataStore__GetArrayPtr5(this, pval, count);
|
|
|
441 |
}
|
|
|
442 |
|
|
|
443 |
//=======================================================================
|
|
|
444 |
void CDataStore::GetBufferParams(LPCVOID* dataPtr,
|
|
|
445 |
UINT* sizePtr,
|
|
|
446 |
UINT* allocPtr) const
|
|
|
447 |
{
|
|
|
448 |
return CDataStore__GetBufferParamsPtr(this,dataPtr,sizePtr,allocPtr);
|
|
|
449 |
}
|
|
|
450 |
|
|
|
451 |
//=======================================================================
|
|
|
452 |
void CDataStore::DetachBuffer(PVOID* dataPtr, UINT* sizePtr, UINT* allocPtr)
|
|
|
453 |
{
|
|
|
454 |
return CDataStore__DetachBufferPtr(this, dataPtr, sizePtr, allocPtr);
|
|
|
455 |
}
|