Added a skipBlock() method

svn-id: r42122
This commit is contained in:
Sven Hesse 2009-07-05 11:27:26 +00:00
parent e861fab808
commit 835dea71ce
2 changed files with 5 additions and 0 deletions

View File

@ -127,6 +127,10 @@ bool Script::skip(int32 offset) {
return seek(offset, SEEK_CUR);
}
bool Script::skipBlock() {
return seek(peekUint16(2) + 2, SEEK_CUR);
}
int32 Script::getOffset(byte *ptr) const {
if (!_totData)
return -1;

View File

@ -53,6 +53,7 @@ public:
// Stream seeking
bool seek(int32 offset, int whence = SEEK_SET);
bool skip(int32 offset);
bool skipBlock();
// Reading data
byte readByte ();