X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Futils.cpp;fp=source%2Fio%2Futils.cpp;h=eee51cc57d28a6b365fb2e7da57fedeb358c32e5;hp=0000000000000000000000000000000000000000;hb=6e0fd758970bcb5bad5e3f2454b694cc4d7b4b66;hpb=b97d4e9f86e90254ab9edef7ee62a910f6333c78 diff --git a/source/io/utils.cpp b/source/io/utils.cpp new file mode 100644 index 0000000..eee51cc --- /dev/null +++ b/source/io/utils.cpp @@ -0,0 +1,17 @@ +#include "base.h" +#include "utils.h" + +namespace Msp { +namespace IO { + +unsigned read_all(Base &obj, char *buf, unsigned size) +{ + unsigned pos = 0; + while(pos