okteta
filebytearraymodel.cpp
Go to the documentation of this file.
52 Size FileByteArrayModel::replace( const AddressRange& /*Section*/, const Byte*, int /*Length*/ ) { return 0; }
53 Size FileByteArrayModel::fill( Byte /*FillChar*/, Address /*Pos*/, Size /*Length*/ ) { return 0; }
54 bool FileByteArrayModel::swap( Address /*DestPos*/, const AddressRange& /*SourceSection*/ ) { return false; }
could it be useful to hide the data access behind an iterator? * class KDataBufferIterator { public: ...
Definition: abstractbytearraymodel.h:79
virtual void setByte(Address offset, Byte byte)
sets a single byte if the offset is not valid the behaviour is undefined
Definition: filebytearraymodel.cpp:47
virtual Size replace(const AddressRange &removeRange, const Byte *insertData, int insertLength)
replaces as much as possible
Definition: filebytearraymodel.cpp:52
FileByteArrayModel(int pageNumber=50, int pageSize=4096, QObject *parent=0)
default is only 50*4k = 200k memory image
Definition: filebytearraymodel.cpp:34
virtual ~FileByteArrayModel()
Definition: filebytearraymodel.cpp:59
void setReadOnly(bool readonly)
Definition: filebytearraymodel_p.h:92
virtual Size insert(Address offset, const Byte *insertData, int insertLength)
inserts bytes copied from the given source at Position.
Definition: filebytearraymodel.cpp:50
bool open(const QString &filename)
Definition: filebytearraymodel.cpp:56
virtual bool isModified() const
Definition: filebytearraymodel.cpp:42
virtual bool swap(Address firstStart, const AddressRange &secondRange)
moves the second section before the start of the first which is the same as moving the first behind t...
Definition: filebytearraymodel.cpp:54
void setReadOnly(bool readOnly=true)
sets the readonly flag for the byte array if this is possible.
Definition: filebytearraymodel.cpp:45
virtual Size fill(Byte fillByte, Address offset=0, Size fillLength=-1)
fills the buffer with the FillChar.
Definition: filebytearraymodel.cpp:53
bool isReadOnly() const
Definition: filebytearraymodel_p.h:91
bool close()
virtual void setModified(bool modified=true)
sets the modified flag for the buffer
Definition: filebytearraymodel.cpp:46
virtual Byte byte(Address offset) const
locates working range The idea behind is to tell buffer which range will be requested in the followin...
Definition: filebytearraymodel.cpp:48
virtual Size remove(const AddressRange &removeRange)
removes beginning with position as much as possible
Definition: filebytearraymodel.cpp:51
bool open(const QString &fileName)
Byte byte(Address offset) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.