Fix BinaryTree skip, small otb changes

This commit is contained in:
Henrique Santiago
2014-02-13 00:41:53 -02:00
parent 8dc831088e
commit b7b8fdfd0c
4 changed files with 22 additions and 8 deletions

View File

@@ -111,6 +111,12 @@ void BinaryTree::seek(uint pos)
m_pos = pos;
}
void BinaryTree::skip(uint len)
{
unserialize();
seek(tell() + len);
}
uint8 BinaryTree::getU8()
{
unserialize();

View File

@@ -39,7 +39,7 @@ public:
~BinaryTree();
void seek(uint pos);
void skip(uint len) { seek(tell() + len); }
void skip(uint len);
uint tell() { return m_pos; }
uint size() { unserialize(); return m_buffer.size(); }