lib/zlib/GunzipReader: use std::size_t

This commit is contained in:
Max Kellermann 2022-01-10 16:56:54 +01:00
parent dda0dfc140
commit aea4d3c4b0
3 changed files with 6 additions and 6 deletions

View File

@ -28,7 +28,7 @@
*/
#include "GunzipReader.hxx"
#include "lib/zlib/Error.hxx"
#include "Error.hxx"
GunzipReader::GunzipReader(Reader &_next)
:next(_next)
@ -50,7 +50,7 @@ GunzipReader::FillBuffer()
auto w = buffer.Write();
assert(!w.empty());
size_t nbytes = next.Read(w.data, w.size);
std::size_t nbytes = next.Read(w.data, w.size);
if (nbytes == 0)
return false;
@ -58,8 +58,8 @@ GunzipReader::FillBuffer()
return true;
}
size_t
GunzipReader::Read(void *data, size_t size)
std::size_t
GunzipReader::Read(void *data, std::size_t size)
{
if (eof)
return 0;

View File

@ -60,7 +60,7 @@ public:
}
/* virtual methods from class Reader */
size_t Read(void *data, size_t size) override;
std::size_t Read(void *data, std::size_t size) override;
private:
bool FillBuffer();

View File

@ -28,7 +28,7 @@
*/
#include "GzipOutputStream.hxx"
#include "lib/zlib/Error.hxx"
#include "Error.hxx"
GzipOutputStream::GzipOutputStream(OutputStream &_next)
:next(_next)