X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=inline;f=source%2Fio%2Ffile.h;h=aeac6c8d265556974ddfee94febdb8ea5fd131b7;hb=30ce69b5cb05712c3a4903b0f397912119c4f1f9;hp=85075d0cca6e8709db663012ced369dd5f0cda52;hpb=ea8bf8f588310b0d7fd3297d74907602705bba1d;p=libs%2Fcore.git diff --git a/source/io/file.h b/source/io/file.h index 85075d0..aeac6c8 100644 --- a/source/io/file.h +++ b/source/io/file.h @@ -61,8 +61,8 @@ public: virtual void set_inherit(bool); protected: - virtual unsigned do_write(const char *, unsigned); - virtual unsigned do_read(char *, unsigned); + virtual std::size_t do_write(const char *, std::size_t); + virtual std::size_t do_read(char *, std::size_t); public: virtual void sync(); @@ -97,10 +97,10 @@ public: virtual void set_inherit(bool); protected: - virtual unsigned do_write(const char *, unsigned); - virtual unsigned do_read(char *, unsigned); + virtual std::size_t do_write(const char *, std::size_t); + virtual std::size_t do_read(char *, std::size_t); public: - virtual unsigned put(char); + virtual std::size_t put(char); virtual bool getline(std::string &); virtual int get();