Template Magic
Removed need to allocate a fake meta block by using templates to provide a version of the code that does not use metas. Also changed the function to a template argument to make sure that the compilier is able to inline it.
This commit is contained in:
@@ -143,7 +143,7 @@ bool cFile::IsEOF(void) const
|
||||
|
||||
|
||||
|
||||
int cFile::Read (void * iBuffer, int iNumBytes)
|
||||
int cFile::Read (void * iBuffer, size_t iNumBytes)
|
||||
{
|
||||
ASSERT(IsOpen());
|
||||
|
||||
@@ -159,7 +159,7 @@ int cFile::Read (void * iBuffer, int iNumBytes)
|
||||
|
||||
|
||||
|
||||
int cFile::Write(const void * iBuffer, int iNumBytes)
|
||||
int cFile::Write(const void * iBuffer, size_t iNumBytes)
|
||||
{
|
||||
ASSERT(IsOpen());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user