]> git.tdb.fi Git - libs/core.git/blob - source/utils.h
Convert C-style casts to C++-style
[libs/core.git] / source / utils.h
1 /* $Id$
2
3 This file is part of libmspio
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7 #ifndef MSP_IO_UTILS_H_
8 #define MSP_IO_UTILS_H_
9
10 namespace Msp {
11 namespace IO {
12
13 class Base;
14
15 /**
16 Reads data from an object.  Does not return until the requested amount of data
17 is read, regardless of the blocking mode of the object.
18
19 Note: If the data is not immediately available and the object is in non-blocking
20 mode, this function effectively becomes a busyloop until it can get more data.
21 */
22 unsigned read_all(Base &, char *, unsigned);
23
24 } // namespace IO
25 } // namespace Msp
26
27 #endif