3 This file is part of libmspio
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
7 #ifndef MSP_IO_UTILS_H_
8 #define MSP_IO_UTILS_H_
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.
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.
22 unsigned read_all(Base &, char *, unsigned);