LosaDev source snapshot 2019
This commit is contained in:
commit
c198676e97
20588 files changed
+8812878
No files matched your search
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include "cBuffer.h"
|
||||
|
||||
class cStorage
|
||||
{
|
||||
public:
|
||||
cStorage(void);
|
||||
~cStorage(void);
|
||||
|
||||
void Init();
|
||||
void Destroy();
|
||||
|
||||
public:
|
||||
BOOL CreateStorage( uint32 length ) { return m_storage.Create(length); }
|
||||
void DestroyStorage() { m_storage.Destroy(); }
|
||||
|
||||
BOOL StoreBuffer( uint8* buffer, uint32 length ) { return m_storage.Copy( buffer, length ); }
|
||||
void CleanStorage() { m_storage.Erase(); }
|
||||
|
||||
uint8* GetStorageBuffer() { return m_storage.GetBuffer(); }
|
||||
uint32 GetStorageLength() { return m_storage.GetLength(); }
|
||||
|
||||
protected:
|
||||
cBuffer m_storage;
|
||||
};
|
||||
Reference in new issue
Block a user