#include <CascMndx.h>
TSparseArray::TSparseArray |
( |
| ) |
|
DWORD TotalItemCount
Definition: CascMndx.h:228
DWORD ValidItemCount
Definition: CascMndx.h:229
void TSparseArray::ExchangeWith |
( |
TSparseArray & |
TargetObject | ) |
|
Definition: CascMndx.h:209
DWORD TSparseArray::GetItemValue |
( |
DWORD |
ItemIndex | ) |
|
1062 pTriplet =
BaseValues.TripletArray + (ItemIndex >> 0x09);
1066 switch(((ItemIndex >> 0x06) & 0x07) - 1)
1069 BaseValue += (pTriplet->
Value2 & 0x7F);
1073 BaseValue += (pTriplet->
Value2 >> 0x07) & 0xFF;
1077 BaseValue += (pTriplet->
Value2 >> 0x0F) & 0xFF;
1081 BaseValue += (pTriplet->
Value2 >> 0x17);
1085 BaseValue += (pTriplet->
Value3 & 0x1FF);
1089 BaseValue += (pTriplet->
Value3 >> 0x09) & 0x1FF;
1093 BaseValue += (pTriplet->
Value3 >> 0x12) & 0x1FF;
1104 DwordIndex = (ItemIndex >> 0x05);
1107 if(ItemIndex & 0x20)
1110 BitMask = (1 << (ItemIndex & 0x1F)) - 1;
#define GetNumbrOfSetBits32(x)
Definition: CascRootFile_Mndx.cpp:249
DWORD BaseValue
Definition: CascMndx.h:27
DWORD Value3
Definition: CascMndx.h:29
TGenericArray BaseValues
Definition: CascMndx.h:230
DWORD Value2
Definition: CascMndx.h:28
unsigned int DWORD
Definition: CascPort.h:139
Definition: CascMndx.h:25
TGenericArray ItemBits
Definition: CascMndx.h:227
DWORD TSparseArray::IsItemPresent |
( |
DWORD |
ItemIndex | ) |
|
|
inline |
222 return (
ItemBits.Uint32Array[ItemIndex >> 0x05] & (1 << (ItemIndex & 0x1F)));
TGenericArray ItemBits
Definition: CascMndx.h:227
int TSparseArray::LoadFromStream |
( |
TByteStream & |
InStream | ) |
|
Definition: CascMndx.h:49
#define ERROR_FILE_CORRUPT
Definition: CascPort.h:218
int LoadDwordsArray_Copy(TByteStream &InStream)
Definition: CascRootFile_Mndx.cpp:758
TGenericArray ArrayDwords_50
Definition: CascMndx.h:232
TGenericArray BaseValues
Definition: CascMndx.h:230
PDWORD Uint32s
Definition: CascMndx.h:53
TGenericArray ArrayDwords_38
Definition: CascMndx.h:231
int GetBytes(DWORD cbByteCount, PARRAY_POINTER PtrArray)
Definition: CascRootFile_Mndx.cpp:347
unsigned int DWORD
Definition: CascPort.h:139
DWORD TotalItemCount
Definition: CascMndx.h:228
int LoadTripletsArray_Copy(TByteStream &InStream)
Definition: CascRootFile_Mndx.cpp:772
TGenericArray ItemBits
Definition: CascMndx.h:227
DWORD ValidItemCount
Definition: CascMndx.h:229
#define ERROR_SUCCESS
Definition: CascPort.h:204
int TSparseArray::LoadFromStream_Exchange |
( |
TByteStream & |
InStream | ) |
|
Definition: CascMndx.h:209
int LoadFromStream(TByteStream &InStream)
Definition: CascRootFile_Mndx.cpp:982
void ExchangeWith(TSparseArray &TargetObject)
Definition: CascRootFile_Mndx.cpp:972
#define ERROR_SUCCESS
Definition: CascPort.h:204
DWORD TSparseArray::TotalItemCount |
DWORD TSparseArray::ValidItemCount |
The documentation for this class was generated from the following files: