TrinityCore
CASC::File Class Reference

#include <CascHandles.h>

Public Member Functions

 ~File ()
 
uint32 GetId () const
 
int64 GetSize () const
 
int64 GetPointer () const
 
bool SetPointer (int64 position)
 
bool ReadFile (void *buffer, uint32 bytes, uint32 *bytesRead)
 

Private Member Functions

 File (HANDLE handle)
 

Private Attributes

HANDLE _handle
 

Friends

FileStorage::OpenFile (char const *fileName, uint32 localeMask, bool printErrors, bool zerofillEncryptedParts) const
 
FileStorage::OpenFile (uint32 fileDataId, uint32 localeMask, bool printErrors, bool zerofillEncryptedParts) const
 

Detailed Description

Definition at line 61 of file CascHandles.h.

Constructor & Destructor Documentation

◆ ~File()

CASC::File::~File ( )

Definition at line 311 of file CascHandles.cpp.

◆ File()

CASC::File::File ( HANDLE  handle)
private

Definition at line 307 of file CascHandles.cpp.

Member Function Documentation

◆ GetId()

uint32 CASC::File::GetId ( ) const

Definition at line 316 of file CascHandles.cpp.

◆ GetPointer()

int64 CASC::File::GetPointer ( ) const

Definition at line 334 of file CascHandles.cpp.

◆ GetSize()

int64 CASC::File::GetSize ( ) const

Definition at line 325 of file CascHandles.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ReadFile()

bool CASC::File::ReadFile ( void *  buffer,
uint32  bytes,
uint32 bytesRead 
)

Definition at line 350 of file CascHandles.cpp.

+ Here is the caller graph for this function:

◆ SetPointer()

bool CASC::File::SetPointer ( int64  position)

Definition at line 343 of file CascHandles.cpp.

Friends And Related Function Documentation

◆ Storage::OpenFile [1/2]

File * Storage::OpenFile ( char const *  fileName,
uint32  localeMask,
bool  printErrors,
bool  zerofillEncryptedParts 
) const
friend

◆ Storage::OpenFile [2/2]

File * Storage::OpenFile ( uint32  fileDataId,
uint32  localeMask,
bool  printErrors,
bool  zerofillEncryptedParts 
) const
friend

Member Data Documentation

◆ _handle

HANDLE CASC::File::_handle
private

Definition at line 78 of file CascHandles.h.


The documentation for this class was generated from the following files: