okteta
abstractbytearraymodel.h
Go to the documentation of this file.
138 // TODO: for data outside the model using char* and int as well as QByteArray should always work, no?
166 virtual Size replace( const AddressRange& removeRange, const Byte* insertData, int insertLength ) = 0;
230 virtual Address indexOf( const Byte* pattern, int patternLength, Address fromOffset = 0, Address toOffset = -1 ) const;
231 Address indexOf( const QByteArray& pattern, Address fromOffset = 0, Address toOffset = -1 ) const;
232 Address indexOfCaseInsensitive( const CharCodec* charCodec, const QByteArray& pattern, Address fromOffset = 0, Address toOffset = -1 ) const;
242 // virtual int indexOf( const char*KeyData, int Length, const Section &Section ) const { return -1; }//= 0;
249 virtual Address lastIndexOf( const Byte* pattern, int patternLength, Address fromOffset = -1, Address toOffset = 0 ) const;
250 Address lastIndexOf( const QByteArray& pattern, Address fromOffset = -1, Address toOffset = 0 ) const;
251 Address lastIndexOfCaseInsensitive( const CharCodec* charCodec, const QByteArray& pattern, Address fromOffset = -1, Address toOffset = 0 ) const;
253 /* virtual int find( const QString &expr, bool cs, bool wo, bool forward = true, int *index = 0 ); */
268 { return insert( offset, reinterpret_cast<const Byte*>(insertData.constData()), insertData.size() ); }
273 inline Size AbstractByteArrayModel::replace( const AddressRange& removeRange, const QByteArray& insertData )
274 { return replace( removeRange, reinterpret_cast<const Byte*>(insertData.constData()), insertData.size() );}
286 inline Address AbstractByteArrayModel::indexOf( const QByteArray& pattern, Address fromOffset, Address toOffset ) const
287 { return indexOf( reinterpret_cast<const Byte*>(pattern.constData()), pattern.size(), fromOffset, toOffset ); }
289 inline Address AbstractByteArrayModel::lastIndexOf( const QByteArray& pattern, Address fromOffset, Address toOffset ) const
290 { return lastIndexOf( reinterpret_cast<const Byte*>(pattern.constData()), pattern.size(), fromOffset, toOffset ); }
virtual Size replace(const AddressRange &removeRange, const Byte *insertData, int insertLength)=0
replaces as much as possible
could it be useful to hide the data access behind an iterator? * class KDataBufferIterator { public: ...
Definition: abstractbytearraymodel.h:79
virtual Size fill(Byte fillByte, Address offset=0, Size fillLength=-1)=0
fills the buffer with the FillChar.
virtual Size insert(Address offset, const Byte *insertData, int insertLength)
inserts bytes copied from the given source at Position.
Definition: abstractbytearraymodel.cpp:47
Okteta::ArrayChangeMetricsList ArrayChangeMetricsList
Definition: grouppiecetablechange.h:42
virtual Size copyTo(Byte *dest, const AddressRange ©Range) const
copies the data of the section into a given array Dest.
Definition: abstractbytearraymodel.cpp:60
virtual Address lastIndexOf(const Byte *pattern, int patternLength, Address fromOffset=-1, Address toOffset=0) const
searches for a given data string The section limits the data within which the key has to be found If ...
Definition: abstractbytearraymodel.cpp:104
Definition: charcodec.h:42
static NumberRange fromWidth(AddressstartIndex, Sizewidth)
constructs a range by width
virtual Address indexOf(const Byte *pattern, int patternLength, Address fromOffset=0, Address toOffset=-1) const
searches beginning with byte at Pos.
Definition: abstractbytearraymodel.cpp:73
virtual Size remove(const AddressRange &removeRange)
removes beginning with position as much as possible
Definition: abstractbytearraymodel.cpp:53
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:06 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:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.