]> git.tdb.fi Git - libs/core.git/blob - source/io/utils.h
Move non-oneliner functions out of RefPtr class declaration
[libs/core.git] / source / io / utils.h
1 #ifndef MSP_IO_UTILS_H_
2 #define MSP_IO_UTILS_H_
3
4 namespace Msp {
5 namespace IO {
6
7 class Base;
8
9 /** Reads data from an object.  Does not return until the requested amount of
10 data is read, regardless of the blocking mode of the object.
11
12 Note: If the data is not immediately available and the object is in non-blocking
13 mode, this function effectively becomes a busyloop until it can get more
14 data. */
15 unsigned read_all(Base &, char *, unsigned);
16
17 } // namespace IO
18 } // namespace Msp
19
20 #endif