TrinityCore
CASC_CKEY_ENTRY Struct Reference

#include <Common.h>

Public Member Functions

 CASC_CKEY_ENTRY ()
 
void Init (void)
 
bool IsFile ()
 

Public Attributes

BYTE CKey [MD5_HASH_SIZE]
 
BYTE EKey [MD5_HASH_SIZE]
 
ULONGLONG StorageOffset
 
ULONGLONG TagBitMask
 
DWORD ContentSize
 
DWORD EncodedSize
 
DWORD Flags
 
USHORT RefCount
 
BYTE SpanCount
 
BYTE Priority
 

Constructor & Destructor Documentation

◆ CASC_CKEY_ENTRY()

CASC_CKEY_ENTRY::CASC_CKEY_ENTRY ( )
inline
79  {
80  Init();
81  }
void Init(void)
Definition: Common.h:83

Member Function Documentation

◆ Init()

void CASC_CKEY_ENTRY::Init ( void  )
inline
84  {
85  memset(this, 0, sizeof(CASC_CKEY_ENTRY));
89  SpanCount = 1;
90  }
#define CASC_INVALID_OFFS64
Definition: CascLib.h:130
Definition: Common.h:76
BYTE SpanCount
Definition: Common.h:117
DWORD EncodedSize
Definition: Common.h:114
DWORD ContentSize
Definition: Common.h:113
ULONGLONG StorageOffset
Definition: Common.h:111
#define CASC_INVALID_SIZE
Definition: CascLib.h:127
+ Here is the caller graph for this function:

◆ IsFile()

bool CASC_CKEY_ENTRY::IsFile ( )
inline
93  {
94  // Must not be a folder entry
95  if((Flags & CASC_CE_FOLDER_ENTRY) == 0)
96  {
97  // There can be entries that are both file span or the standalone file
98  // * zone/zm_red.xpak - { zone/zm_red.xpak_1, zone/zm_red.xpak_2, ..., zone/zm_red.xpak_6 }
99  if(RefCount != 0)
100  return true;
101 
102  // To include the file, it must either be present in ENCODING, DOWNLOAD or in BUILD file
104  return true;
105  }
106  return false;
107  }
#define CASC_CE_IN_ENCODING
Definition: Common.h:66
#define CASC_CE_FOLDER_ENTRY
Definition: Common.h:70
#define CASC_CE_FILE_SPAN
Definition: Common.h:71
#define CASC_CE_IN_BUILD
Definition: Common.h:68
#define CASC_CE_IN_DOWNLOAD
Definition: Common.h:67
DWORD Flags
Definition: Common.h:115
USHORT RefCount
Definition: Common.h:116
+ Here is the caller graph for this function:

Member Data Documentation

◆ CKey

BYTE CASC_CKEY_ENTRY::CKey[MD5_HASH_SIZE]

◆ ContentSize

DWORD CASC_CKEY_ENTRY::ContentSize

◆ EKey

BYTE CASC_CKEY_ENTRY::EKey[MD5_HASH_SIZE]

◆ EncodedSize

DWORD CASC_CKEY_ENTRY::EncodedSize

◆ Flags

DWORD CASC_CKEY_ENTRY::Flags

◆ Priority

BYTE CASC_CKEY_ENTRY::Priority

◆ RefCount

USHORT CASC_CKEY_ENTRY::RefCount

◆ SpanCount

BYTE CASC_CKEY_ENTRY::SpanCount

◆ StorageOffset

ULONGLONG CASC_CKEY_ENTRY::StorageOffset

◆ TagBitMask

ULONGLONG CASC_CKEY_ENTRY::TagBitMask

The documentation for this struct was generated from the following file: