BearParser
Portable Executable parsing library (from PE-bear)
Loading...
Searching...
No Matches
AbstractFileBuffer Class Reference

#include <FileBuffer.h>

Public Member Functions

QString getFileName ()
 

Static Public Member Functions

static ByteBufferread (QString &file, bufsize_t minBufSize, const bool allowTruncate)
 
static bufsize_t getReadableSize (QFile &fIn)
 
static bufsize_t getReadableSize (const QString &path)
 
static bufsize_t dump (const QString &fileName, AbstractByteBuffer &buf, bool allowExceptions=false)
 

Protected Member Functions

 AbstractFileBuffer (QString v_fileName)
 

Static Protected Member Functions

static ByteBufferread (QFile &fIn, bufsize_t minBufSize, const bool allowTruncate)
 

Protected Attributes

QString fileName
 
qint64 fileSize
 

Detailed Description

Definition at line 16 of file FileBuffer.h.

Constructor & Destructor Documentation

◆ AbstractFileBuffer()

AbstractFileBuffer::AbstractFileBuffer ( QString v_fileName)
inlineprotected

Definition at line 28 of file FileBuffer.h.

Member Function Documentation

◆ dump()

bufsize_t AbstractFileBuffer::dump ( const QString & fileName,
AbstractByteBuffer & buf,
bool allowExceptions = false )
static

Definition at line 114 of file FileBuffer.cpp.

Here is the call graph for this function:

◆ getFileName()

QString AbstractFileBuffer::getFileName ( )
inline

Definition at line 23 of file FileBuffer.h.

◆ getReadableSize() [1/2]

bufsize_t AbstractFileBuffer::getReadableSize ( const QString & path)
static

Definition at line 104 of file FileBuffer.cpp.

Here is the call graph for this function:

◆ getReadableSize() [2/2]

bufsize_t AbstractFileBuffer::getReadableSize ( QFile & fIn)
static

Definition at line 95 of file FileBuffer.cpp.

◆ read() [1/2]

ByteBuffer * AbstractFileBuffer::read ( QFile & fIn,
bufsize_t minBufSize,
const bool allowTruncate )
staticprotected

Definition at line 52 of file FileBuffer.cpp.

Here is the call graph for this function:

◆ read() [2/2]

ByteBuffer * AbstractFileBuffer::read ( QString & file,
bufsize_t minBufSize,
const bool allowTruncate )
static

Definition at line 41 of file FileBuffer.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ fileName

QString AbstractFileBuffer::fileName
protected

Definition at line 30 of file FileBuffer.h.

◆ fileSize

qint64 AbstractFileBuffer::fileSize
protected

Definition at line 31 of file FileBuffer.h.


The documentation for this class was generated from the following files: