Decouple <cstddef>

This commit is contained in:
Martin Natano
2023-04-20 11:21:29 +02:00
parent 093675cdc3
commit 78fb2e9fc3
171 changed files with 2012 additions and 1786 deletions
+7 -5
View File
@@ -5,6 +5,8 @@
#include "RageFileBasic.h"
#include <cstddef>
typedef struct z_stream_s z_stream;
class RageFileObjInflate: public RageFileObj
@@ -15,8 +17,8 @@ public:
RageFileObjInflate( RageFileBasic *pFile, int iUncompressedSize );
RageFileObjInflate( const RageFileObjInflate &cpy );
~RageFileObjInflate();
int ReadInternal( void *pBuffer, size_t iBytes );
int WriteInternal( const void * /* pBuffer */, size_t /* iBytes */ ) { SetError( "Not implemented" ); return -1; }
int ReadInternal( void *pBuffer, std::size_t iBytes );
int WriteInternal( const void * /* pBuffer */, std::size_t /* iBytes */ ) { SetError( "Not implemented" ); return -1; }
int SeekInternal( int iOffset );
int GetFileSize() const { return m_iUncompressedSize; }
int GetFD() { return m_pFile->GetFD(); }
@@ -47,10 +49,10 @@ public:
void DeleteFileWhenFinished() { m_bFileOwned = true; }
protected:
int ReadInternal( void * /* pBuffer */, size_t /* iBytes */ ) { SetError( "Not implemented" ); return -1; }
int WriteInternal( const void *pBuffer, size_t iBytes );
int ReadInternal( void * /* pBuffer */, std::size_t /* iBytes */ ) { SetError( "Not implemented" ); return -1; }
int WriteInternal( const void *pBuffer, std::size_t iBytes );
int FlushInternal();
RageFileBasic *m_pFile;
z_stream *m_pDeflate;
bool m_bFileOwned;