added barriers, started working on libraries
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#include "tier1/utlbuffer.h"
|
||||
#include "tier2/ifilesystem.h"
|
||||
#include "tier1/interface.h"
|
||||
#include "tier0/lib.h"
|
||||
#include <cstdio>
|
||||
|
||||
size_t IFileHandle::Write( const void *pData, size_t nDataSize )
|
||||
{
|
||||
@@ -83,6 +85,15 @@ public:
|
||||
{
|
||||
|
||||
}
|
||||
virtual CUtlBuffer<unsigned char> Read( IFileHandle *pFile ) override
|
||||
{
|
||||
CUtlBuffer<unsigned char> buffer;
|
||||
buffer = CUtlBuffer<unsigned char>(Size(pFile));
|
||||
|
||||
Read(pFile, buffer.GetMemory(), buffer.GetSize());
|
||||
|
||||
return buffer;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user