Skip to content
Snippets Groups Projects
Commit 2de3d386 authored by Aaron's avatar Aaron
Browse files

Added Seek and Rewind (destroy?) to BedFile.

parent 0cca2731
No related branches found
No related tags found
No related merge requests found
......@@ -146,6 +146,16 @@ void BedFile::Open(void) {
}
}
// Rewind the pointer back to the beginning of the file
void BedFile::Rewind(void) {
_bedStream->seekg(0, ios::beg);
}
// Jump to a specific byte in the file
void BedFile::Seek(unsigned long offset) {
_bedStream->seekg(offset);
}
// Close the BED file
void BedFile::Close(void) {
......
......@@ -401,6 +401,12 @@ public:
// Open a BED file for reading (creates an istream pointer)
void Open(void);
// Rewind the pointer back to the beginning of the file
void Rewind(void);
// Jump to a specific byte in the file
void Seek(unsigned long offset);
// Close an opened BED file.
void Close(void);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment