return buf;
}
-unsigned JsDevice::do_read(char *buf, unsigned size)
+size_t JsDevice::do_read(char *buf, size_t size)
{
return IO::sys_read(handle, buf, size);
}
-unsigned JsDevice::do_write(const char *, unsigned)
+size_t JsDevice::do_write(const char *, size_t)
{
throw IO::invalid_access(IO::M_WRITE);
}
virtual void set_inherit(bool) { }
protected:
- virtual unsigned do_read(char *, unsigned);
- virtual unsigned do_write(const char *, unsigned);
+ virtual std::size_t do_read(char *, std::size_t);
+ virtual std::size_t do_write(const char *, std::size_t);
public:
virtual const IO::Handle &get_handle(IO::Mode) { return handle; }