diff -r 613e4e943120 -r b68f3e90dca1 mmlibs/mmfw/Recogniser/src/reader.cpp --- a/mmlibs/mmfw/Recogniser/src/reader.cpp Thu Sep 02 22:02:55 2010 +0300 +++ b/mmlibs/mmfw/Recogniser/src/reader.cpp Fri Sep 17 08:37:57 2010 +0300 @@ -172,6 +172,20 @@ return KErrNone; } - +// +// Skips forwards or backwards aOffset number of bytes. +// +TInt CReader::Seek(TInt64 aOffset) + { + TInt64 newBufPos = iBufPos + aOffset; + + if ((newBufPos < 0) || (newBufPos >= iBuffer.Length())) + { + // Trying to seek past the bounds of the buffer. + return KErrUnderflow; + } + + iBufPos += aOffset; + return KErrNone; + } -