2 #include <qi/anymodule.hpp>
10 :
qi::Proxy(std::move(obj))
16 Buffer
read(std::streamsize countBytesToRead)
override
18 return _obj.call<Buffer>(
"read", countBytesToRead);
21 Buffer
read(std::streamoff beginOffset, std::streamsize countBytesToRead)
override
23 return _obj.call<Buffer>(
"read", beginOffset, countBytesToRead);
26 bool seek(std::streamoff offsetFromBegin)
override
28 return _obj.call<
bool>(
"seek", offsetFromBegin);
33 return _obj.call<
void>(
"close");
36 std::streamsize
size()
const override
38 return _obj.call<std::streamsize>(
"size");
43 return _obj.call<
bool>(
"isOpen");
57 Buffer
_read(std::streamsize countBytesToRead)
override
59 return _obj.call<Buffer>(
"_read", countBytesToRead);
62 Buffer
_read(std::streamoff beginOffset, std::streamsize countBytesToRead)
override
64 return _obj.call<Buffer>(
"_read", beginOffset, countBytesToRead);
67 bool _seek(std::streamoff offsetFromBegin)
override
69 return _obj.call<
bool>(
"_seek", offsetFromBegin);
74 return _obj.call<
void>(
"_close");
80 ::qi::registerProxyInterface<FileProxy, File>();