okteta
fixedsizebytearraymodel.h
Go to the documentation of this file.
57 virtual Size replace( const AddressRange& removeRange, const Byte* insertData, int insertLength );
66 int compare( const AbstractByteArrayModel& other, const AddressRange& otherRange, Address offset = 0 );
67 int compare( const AbstractByteArrayModel& other, Address otherOffset, Size otherLength, Address offset = 0 );
104 inline int FixedSizeByteArrayModel::compare( const AbstractByteArrayModel& other, Address otherOffset, Size otherLength, Address offset )
int compare(const AbstractByteArrayModel &other, const AddressRange &otherRange, Address offset=0)
Definition: fixedsizebytearraymodel.cpp:275
void reset(unsigned int pos, unsigned int length)
Definition: fixedsizebytearraymodel.cpp:327
could it be useful to hide the data access behind an iterator? * class KDataBufferIterator { public: ...
Definition: abstractbytearraymodel.h:79
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: fixedsizebytearraymodel.cpp:173
virtual Size fill(Byte fillByte, Address offset=0, Size fillLength=-1)
fills the buffer with the FillChar.
Definition: fixedsizebytearraymodel.cpp:251
virtual Size insert(Address offset, const Byte *insertData, int insertLength)
inserts bytes copied from the given source at Position.
Definition: fixedsizebytearraymodel.cpp:72
base class for all mData buffers that are used to display TODO: think about a way to inform KHexEdit ...
Definition: fixedsizebytearraymodel.h:39
FixedSizeByteArrayModel(Byte *data, int size, Byte fillUpChar= '\0', QObject *parent=0)
creates a readonly buffer around the given data
Definition: fixedsizebytearraymodel.cpp:34
virtual Size size() const =0
virtual Size replace(const AddressRange &removeRange, const Byte *insertData, int insertLength)
replaces as much as possible
Definition: fixedsizebytearraymodel.cpp:128
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: fixedsizebytearraymodel.h:92
static NumberRange fromWidth(AddressstartIndex, Sizewidth)
constructs a range by width
virtual void setReadOnly(bool readOnly=true)
sets the readonly flag for the byte array if this is possible.
Definition: fixedsizebytearraymodel.h:98
virtual void setModified(bool modified=true)
sets the modified flag for the buffer
Definition: fixedsizebytearraymodel.h:99
Byte mFillUpByte
Definition: fixedsizebytearraymodel.h:82
Byte * rawData() const
Definition: fixedsizebytearraymodel.h:107
virtual void setByte(Address offset, Byte byte)
sets a single byte if the offset is not valid the behaviour is undefined
Definition: fixedsizebytearraymodel.cpp:58
virtual ~FixedSizeByteArrayModel()
Definition: fixedsizebytearraymodel.cpp:333
bool mAutoDelete
Definition: fixedsizebytearraymodel.h:88
virtual Size size() const
Definition: fixedsizebytearraymodel.h:93
virtual bool isModified() const
Definition: fixedsizebytearraymodel.h:96
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.