#include <klimitediodevice_p.h>
A readonly device that reads from an underlying device from a given point to another (e.g.
to give access to a single file inside an archive).
- Author
- David Faure faure.nosp@m.@kde.nosp@m..org
- used by KArchive
Definition at line 31 of file klimitediodevice_p.h.
◆ KLimitedIODevice()
KLimitedIODevice::KLimitedIODevice |
( |
QIODevice * |
dev, |
|
|
qint64 |
start, |
|
|
qint64 |
length |
|
) |
| |
Creates a new KLimitedIODevice.
- Parameters
-
dev | the underlying device, opened or not This device itself auto-opens (in readonly mode), no need to open it. |
start | where to start reading (position in bytes) |
length | the length of the data to read (in bytes) |
Definition at line 21 of file klimitediodevice.cpp.
◆ ~KLimitedIODevice()
virtual KLimitedIODevice::~KLimitedIODevice |
( |
| ) |
|
|
inlinevirtual |
◆ bytesAvailable()
qint64 KLimitedIODevice::bytesAvailable |
( |
| ) |
const |
|
virtual |
◆ close()
void KLimitedIODevice::close |
( |
| ) |
|
|
virtual |
◆ isSequential()
bool KLimitedIODevice::isSequential |
( |
| ) |
const |
|
virtual |
◆ open()
bool KLimitedIODevice::open |
( |
QIODevice::OpenMode |
m | ) |
|
|
virtual |
◆ putChar()
virtual int KLimitedIODevice::putChar |
( |
int |
| ) |
|
|
inlinevirtual |
◆ readData()
qint64 KLimitedIODevice::readData |
( |
char * |
data, |
|
|
qint64 |
maxlen |
|
) |
| |
|
virtual |
◆ seek()
bool KLimitedIODevice::seek |
( |
qint64 |
pos | ) |
|
|
virtual |
◆ size()
qint64 KLimitedIODevice::size |
( |
| ) |
const |
|
virtual |
◆ writeData()
virtual qint64 KLimitedIODevice::writeData |
( |
const char * |
, |
|
|
qint64 |
|
|
) |
| |
|
inlinevirtual |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 26 2021 00:00:00 by
doxygen 1.9.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.