#include <filesystem_helper.h>
Definition at line 120 of file filesystem_helper.h.
reader_limited::reader_limited |
( |
| ) |
|
|
inline |
bool reader_limited::can_seek |
( |
| ) |
|
|
inline |
static file::ptr reader_limited::g_create |
( |
file::ptr |
base, |
|
|
t_filesize |
offset, |
|
|
t_filesize |
size, |
|
|
abort_callback & |
abort |
|
) |
| |
|
inlinestatic |
Definition at line 126 of file filesystem_helper.h.
128 if (offset + size < offset)
throw pfc::exception_overflow();
129 r->init(base, offset, offset + size, abort);
Template implementing reference-counting features of service_base. Intended for dynamic instantiation...
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
t_filetimestamp reader_limited::get_timestamp |
( |
abort_callback & |
p_abort | ) |
|
|
inline |
bool reader_limited::is_remote |
( |
| ) |
|
|
inline |
Definition at line 149 of file filesystem_helper.h.
151 pos =
r->get_position(p_abort);
153 return r->read(p_buffer,p_bytes,p_abort);
t_uint64 t_filesize
Type used for file size related variables.
Definition at line 170 of file filesystem_helper.h.
void seekInternal(t_filesize position, abort_callback &abort)
void reader_limited::seek |
( |
t_filesize |
position, |
|
|
abort_callback & |
p_abort |
|
) |
| |
|
inline |
void reader_limited::seekInternal |
( |
t_filesize |
position, |
|
|
abort_callback & |
abort |
|
) |
| |
|
inlineprivate |
Definition at line 174 of file filesystem_helper.h.
176 r->seek(position, abort);
181 try {
r->skip_object(position, abort); }
182 catch (exception_io_data) {
throw exception_io_seek_out_of_range(); }
186 try {
r->skip_object(skipMe, abort); }
187 catch (exception_io_data) {
throw exception_io_seek_out_of_range(); }
static const t_filesize filesize_invalid
Invalid/unknown file size constant. Also see: t_filesize.
t_uint64 t_filesize
Type used for file size related variables.
t_filesize reader_limited::begin |
|
private |
t_filesize reader_limited::end |
|
private |
The documentation for this class was generated from the following file: