- return ( fseek64(m_stream, position, SEEK_SET) == 0);
-}
-
-int64_t BamFile::Tell(void) const {
- BT_ASSERT_X( m_stream, "BamFile::Tell() - null stream" );
- return ftell64(m_stream);
-}
-
-size_t BamFile::Write(const char* data, const unsigned int numBytes) {
- BT_ASSERT_X( m_stream, "BamFile::Write() - null stream" );
- BT_ASSERT_X( (m_mode == IBamIODevice::WriteOnly), "BamFile::Write() - device not in write-only mode" );
- return fwrite(data, sizeof(char), numBytes, m_stream);