X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Futils.h;fp=source%2Fio%2Futils.h;h=f73383d94ba9dc29b78d17aaa0c2a1e4912afec7;hp=8d4f9dd692c769f86b2a2aea71d4522eec9b7bbf;hb=03862ac4f38db0799872850dc4ab43b88688e4eb;hpb=35589b9f994ef827c34fe6ac91c8344c2a351412 diff --git a/source/io/utils.h b/source/io/utils.h index 8d4f9dd..f73383d 100644 --- a/source/io/utils.h +++ b/source/io/utils.h @@ -1,6 +1,8 @@ #ifndef MSP_IO_UTILS_H_ #define MSP_IO_UTILS_H_ +#include + namespace Msp { namespace IO { @@ -12,7 +14,7 @@ data is read, regardless of the blocking mode of the object. Note: If the data is not immediately available and the object is in non-blocking mode, this function effectively becomes a busyloop until it can get more data. */ -unsigned read_all(Base &, char *, unsigned); +std::size_t read_all(Base &, char *, std::size_t); } // namespace IO } // namespace Msp