-bool BamPipe::Seek(const int64_t& position) {
-// (void)position; // suppress compiler warning about unused variable
-// return false; // seeking not allowed in pipe
-
- BT_ASSERT_X( m_stream, "BamFile::Seek() - null stream" );
- cerr << "BamPipe::Seek() - about to attempt seek" << endl;
- bool result = ( fseek64(m_stream, position, SEEK_SET) == 0);
- if ( !result ) {
- cerr << "BamPipe can't be seeked in" << endl;
- }
- return result;
-
-// return ( fseek64(m_stream, position, SEEK_SET) == 0);
-
+bool BamPipe::Seek(const int64_t& ) {
+ SetErrorString("BamPipe::Seek", "random access not allowed in FIFO pipe");
+ return false;