206 if (sqlHighestIndex > maxi)
207 maxi = sqlHighestIndex;
211 indexTable =
new ptr[maxi];
212 memset(indexTable, 0, maxi *
sizeof(ptr));
216 records = recordCount + sqlRecordCount;
217 indexTable =
new ptr[recordCount + sqlRecordCount];
220 char* dataTable =
new char[(recordCount + sqlRecordCount) * recordsize];
229 indexTable[
y] = &dataTable[offset];
237 offset +=
sizeof(float);
246 offset +=
sizeof(
uint8);
253 *((
char**)(&dataTable[offset])) =
NULL;
254 offset +=
sizeof(
char*);
261 ASSERT(
false &&
"Unknown field format character in DBCfmt.h");
267 sqlDataTable = dataTable + offset;
void format(BasicFormatter< Char > &f, const Char *&format_str, const T &value)
Definition: format.h:2963
Record getRecord(size_t id)
Definition: DBCFileLoader.cpp:122
uint64 getUInt64(size_t field) const
Definition: DBCFileLoader.h:56
uint32 fieldCount
Definition: DBCFileLoader.h:96
uint32 recordCount
Definition: DBCFileLoader.h:95
arena_t NULL
Definition: jemalloc_internal.h:624
uint64_t uint64
Definition: g3dmath.h:170
uint8 getUInt8(size_t field) const
Definition: DBCFileLoader.h:51
float getFloat(size_t field) const
Definition: DBCFileLoader.h:37
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
uint64_t uint64
Definition: Define.h:149
G3D::int16 y
Definition: Vector2int16.h:38
uint8_t uint8
Definition: g3dmath.h:164
static uint32 GetFormatRecordSize(const char *format, int32 *index_pos=NULL)
Definition: DBCFileLoader.cpp:128
uint8_t uint8
Definition: Define.h:152
#define ASSERT
Definition: Errors.h:55
uint32_t uint32
Definition: g3dmath.h:168
G3D::int16 x
Definition: Vector2int16.h:37
uint32 getUInt(size_t field) const
Definition: DBCFileLoader.h:44