]> git.tdb.fi Git - libs/core.git/blob - source/utils.h
Drop copyright and license notices from files
[libs/core.git] / source / 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 /**
10 Reads data from an object.  Does not return until the requested amount of data
11 is read, regardless of the blocking mode of the object.
12
13 Note: If the data is not immediately available and the object is in non-blocking
14 mode, this function effectively becomes a busyloop until it can get more data.
15 */
16 unsigned read_all(Base &, char *, unsigned);
17
18 } // namespace IO
19 } // namespace Msp
20
21 #endif