1
0

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:
Tycho
2014-04-28 10:31:07 -07:00
parent 744e00c904
commit a42480cf82
4 changed files with 183 additions and 173 deletions

View File

@@ -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());