input/InputStream: add method Skip()
This commit is contained in:
parent
10f086854b
commit
09a188bfd9
@ -100,6 +100,13 @@ InputStream::LockSeek(offset_type _offset, Error &error)
|
||||
return Seek(_offset, error);
|
||||
}
|
||||
|
||||
bool
|
||||
InputStream::LockSkip(offset_type _offset, Error &error)
|
||||
{
|
||||
const ScopeLock protect(mutex);
|
||||
return Skip(_offset, error);
|
||||
}
|
||||
|
||||
Tag *
|
||||
InputStream::ReadTag()
|
||||
{
|
||||
|
@ -294,6 +294,15 @@ public:
|
||||
return LockSeek(0, error);
|
||||
}
|
||||
|
||||
/**
|
||||
* Skip input bytes.
|
||||
*/
|
||||
bool Skip(offset_type _offset, Error &error) {
|
||||
return Seek(GetOffset() + _offset, error);
|
||||
}
|
||||
|
||||
bool LockSkip(offset_type _offset, Error &error);
|
||||
|
||||
/**
|
||||
* Returns true if the stream has reached end-of-file.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user