#include <streamclone.h>
Inheritance diagram for OpenRaw::IO::StreamClone:
Public Member Functions | |
StreamClone (Stream *clone, off_t offset) | |
virtual | ~StreamClone () |
virtual Error | open () |
virtual int | close () |
virtual int | seek (off_t offset, int whence) |
virtual int | read (void *buf, size_t count) |
virtual off_t | filesize () |
Definition at line 35 of file streamclone.h.
Stream::Error OpenRaw::IO::StreamClone::open | ( | ) | [virtual] |
open the file
Implements OpenRaw::IO::Stream.
Definition at line 42 of file streamclone.cpp.
References OpenRaw::IO::Stream::seek(), and OpenRaw::IO::Stream::set_error().
int OpenRaw::IO::StreamClone::close | ( | ) | [virtual] |
int OpenRaw::IO::StreamClone::seek | ( | off_t | offset, | |
int | whence | |||
) | [virtual] |
seek in the file. Semantics are similar to POSIX
Implements OpenRaw::IO::Stream.
Definition at line 62 of file streamclone.cpp.
References OpenRaw::IO::Stream::seek(), and OpenRaw::IO::Stream::set_error().
int OpenRaw::IO::StreamClone::read | ( | void * | buf, | |
size_t | count | |||
) | [virtual] |
read in the file. Semantics are similar to POSIX
Implements OpenRaw::IO::Stream.
Definition at line 75 of file streamclone.cpp.
References OpenRaw::IO::Stream::read(), and OpenRaw::IO::Stream::set_error().