1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Define bridge interface to minizip IOAPI

This commit is contained in:
AlexVinS
2015-08-11 14:44:47 +03:00
committed by AlexVinS
parent 8f209b17b6
commit b3ac146ba9
8 changed files with 159 additions and 6 deletions

View File

@@ -11,14 +11,14 @@
*/
#include "CInputStream.h"
#include "COutputStream.h"
#include "CInputOutputStream.h"
/**
* A class which provides IO memory buffer.
*/
class DLL_LINKAGE CMemoryBuffer : public CInputStream, public COutputStream
class DLL_LINKAGE CMemoryBuffer : public CInputOutputStream
{
public:
typedef std::vector<ui8> TBuffer;
@@ -36,7 +36,7 @@ public:
* @param size The number of bytes to write.
* @return the number of bytes written actually.
*/
si64 write(ui8 * data, si64 size) override;
si64 write(const ui8 * data, si64 size) override;
/**
* Reads n bytes from the stream into the data buffer.