--- a/mmlibs/mmfw/Recogniser/src/reader.cpp Thu Sep 16 18:39:58 2010 +0100
+++ b/mmlibs/mmfw/Recogniser/src/reader.cpp Thu Sep 16 18:57:38 2010 +0100
@@ -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;
+ }
-