-size_t BamPipe::Read(char* data, const unsigned int numBytes) {
- BT_ASSERT_X( m_stream, "BamPipe::Read() - null stream" );
- BT_ASSERT_X( (m_mode == IBamIODevice::ReadOnly), "BamPipe::Read() - device not in read-only mode");
- return fread(data, sizeof(char), numBytes, m_stream);
-}
-
-bool BamPipe::Seek(const int64_t& position) {
- (void)position; // suppress compiler warning about unused variable
- return false; // seeking not allowed in pipe
-}
-
-int64_t BamPipe::Tell(void) const {
- BT_ASSERT_X( m_stream, "BamPipe::Tell() - null stream" );
- return ftell64(m_stream);
-}
-
-size_t BamPipe::Write(const char* data, const unsigned int numBytes) {
- BT_ASSERT_X( m_stream, "BamPipe::Write() - null stream" );
- BT_ASSERT_X( (m_mode == IBamIODevice::WriteOnly), "BamPipe::Write() - device not in write-only mode" );
- return fwrite(data, sizeof(char), numBytes, m_stream);
+bool BamPipe::Seek(const int64_t& ) {
+ SetErrorString("BamPipe::Seek", "random access not allowed in FIFO pipe");
+ return false;