TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
CascCommon.cpp File Reference
#include "CascLib.h"
#include "CascCommon.h"
+ Include dependency graph for CascCommon.cpp:

Macros

#define __CASCLIB_SELF__
 

Functions

DWORD ConvertBytesToInteger_3 (LPBYTE ValueAsBytes)
 
DWORD ConvertBytesToInteger_4 (LPBYTE ValueAsBytes)
 
DWORD ConvertBytesToInteger_4_LE (LPBYTE ValueAsBytes)
 
ULONGLONG ConvertBytesToInteger_5 (LPBYTE ValueAsBytes)
 
void ConvertIntegerToBytes_4 (DWORD Value, LPBYTE ValueAsBytes)
 
void FreeCascBlob (PQUERY_KEY pBlob)
 

Macro Definition Documentation

#define __CASCLIB_SELF__

Function Documentation

DWORD ConvertBytesToInteger_3 ( LPBYTE  ValueAsBytes)
20 {
21  DWORD Value = 0;
22 
23  Value = (Value << 0x08) | ValueAsBytes[0];
24  Value = (Value << 0x08) | ValueAsBytes[1];
25  Value = (Value << 0x08) | ValueAsBytes[2];
26 
27  return Value;
28 }
GenericValue< UTF8<> > Value
GenericValue with UTF8 encoding.
Definition: document.h:1706
unsigned int DWORD
Definition: CascPort.h:139

+ Here is the caller graph for this function:

DWORD ConvertBytesToInteger_4 ( LPBYTE  ValueAsBytes)
32 {
33  DWORD Value = 0;
34 
35  Value = (Value << 0x08) | ValueAsBytes[0];
36  Value = (Value << 0x08) | ValueAsBytes[1];
37  Value = (Value << 0x08) | ValueAsBytes[2];
38  Value = (Value << 0x08) | ValueAsBytes[3];
39 
40  return Value;
41 }
GenericValue< UTF8<> > Value
GenericValue with UTF8 encoding.
Definition: document.h:1706
unsigned int DWORD
Definition: CascPort.h:139

+ Here is the caller graph for this function:

DWORD ConvertBytesToInteger_4_LE ( LPBYTE  ValueAsBytes)
44 {
45  DWORD Value = 0;
46 
47  Value = (Value << 0x08) | ValueAsBytes[3];
48  Value = (Value << 0x08) | ValueAsBytes[2];
49  Value = (Value << 0x08) | ValueAsBytes[1];
50  Value = (Value << 0x08) | ValueAsBytes[0];
51 
52  return Value;
53 }
GenericValue< UTF8<> > Value
GenericValue with UTF8 encoding.
Definition: document.h:1706
unsigned int DWORD
Definition: CascPort.h:139

+ Here is the caller graph for this function:

ULONGLONG ConvertBytesToInteger_5 ( LPBYTE  ValueAsBytes)
57 {
58  ULONGLONG Value = 0;
59 
60  Value = (Value << 0x08) | ValueAsBytes[0];
61  Value = (Value << 0x08) | ValueAsBytes[1];
62  Value = (Value << 0x08) | ValueAsBytes[2];
63  Value = (Value << 0x08) | ValueAsBytes[3];
64  Value = (Value << 0x08) | ValueAsBytes[4];
65 
66  return Value;
67 }
unsigned long long ULONGLONG
Definition: CascPort.h:144
GenericValue< UTF8<> > Value
GenericValue with UTF8 encoding.
Definition: document.h:1706

+ Here is the caller graph for this function:

void ConvertIntegerToBytes_4 ( DWORD  Value,
LPBYTE  ValueAsBytes 
)
70 {
71  ValueAsBytes[0] = (Value >> 0x18) & 0xFF;
72  ValueAsBytes[1] = (Value >> 0x10) & 0xFF;
73  ValueAsBytes[2] = (Value >> 0x08) & 0xFF;
74  ValueAsBytes[3] = (Value >> 0x00) & 0xFF;
75 }
void FreeCascBlob ( PQUERY_KEY  pBlob)
81 {
82  if(pBlob != NULL)
83  {
84  if(pBlob->pbData != NULL)
85  CASC_FREE(pBlob->pbData);
86 
87  pBlob->pbData = NULL;
88  pBlob->cbData = 0;
89  }
90 }
arena_t NULL
Definition: jemalloc_internal.h:624
#define CASC_FREE(ptr)
Definition: CascCommon.h:303
DWORD cbData
Definition: CascLib.h:141
LPBYTE pbData
Definition: CascLib.h:140

+ Here is the caller graph for this function: