Skip to content

Commit

Permalink
Merge pull request macmade#2 from mixlr/feature/stream_clear
Browse files Browse the repository at this point in the history
Add clear function to BinaryStream
  • Loading branch information
macmade committed Mar 14, 2016
2 parents b6cc369 + f4edb2e commit 19efc32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/MP4.BinaryStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -605,3 +605,8 @@ std::istream & BinaryStream::seekg( std::streamoff off, std::ios_base::seekdir d
{
return stream.seekg( off, dir );
}

void BinaryStream::clear( void )
{
return stream.clear();
}
1 change: 1 addition & 0 deletions source/include/MP4.BinaryStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ namespace MP4
std::istream & unget( void );
std::istream & seekg( std::streampos pos );
std::istream & seekg( std::streamoff off, std::ios_base::seekdir dir );
void clear( void );
};
}

Expand Down

0 comments on commit 19efc32

Please sign in to comment.