62 if (fIn.open(QFile::ReadOnly) ==
false) {
66 this->
m_Buf =
read(fIn, minSize, allowTruncate);
81 if (!
m_Buf)
return false;
const bufsize_t BUFSIZE_MAX
const bufsize_t FILEVIEW_MAXSIZE
const bufsize_t FILE_MAXSIZE
static bufsize_t getReadableSize(QFile &fIn)
static bufsize_t dump(const QString &fileName, AbstractByteBuffer &buf, bool allowExceptions=false)
static ByteBuffer * read(QString &file, bufsize_t minBufSize, const bool allowTruncate)
AbstractFileBuffer(QString v_fileName)
virtual BYTE * getContent()
virtual bufsize_t getContentSize()
virtual bool resize(bufsize_t newSize)
FileBufferException(const QString info)
FileBuffer(QString &fileName, bufsize_t minSize, bool allowTruncate)
virtual bufsize_t getContentSize()
virtual BYTE * getContent()
bool resize(bufsize_t newSize)
virtual bool isTruncated()
virtual bool isTruncated()
virtual BYTE * getContent()
bufsize_t getMappableSize()
virtual bufsize_t getContentSize()
FileView(QString &fileName, bufsize_t maxSize=FILE_MAXSIZE)