![]() |
Gorgon Game Engine
|
Marks a target position in file. More...
Public Member Functions | |
Mark (const Mark &)=default | |
Copy constructor. More... | |
Mark (Reader &reader, unsigned long target) | |
Constructs a target using a reader and absolute file position. More... | |
operator bool () const | |
Checks if the target is reached. More... | |
unsigned long | Tell () const |
Tells the position of this mark. More... | |
Marks a target position in file.
Can be checked if it is reached. Asserts to make sure target is not passed.
Constructs a target using a reader and absolute file position.
Prefer using Reader::Target function to create a target.
|
explicit |
Checks if the target is reached.
References ASSERT, and Reader::Tell().
unsigned long Tell | ( | ) | const |
Tells the position of this mark.