--- 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;
+ }
-