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