improved disk read performance and fixed bug in storage_interface's backwards compatibility functions

This commit is contained in:
Arvid Norberg
2009-09-05 07:21:10 +00:00
parent c7b1d7e7d6
commit bec481acdf
14 changed files with 484 additions and 24 deletions

View File

@@ -147,6 +147,9 @@ struct test_storage : storage_interface
return ret;
}
virtual size_type physical_offset(int piece_index, int offset)
{ return m_lower_layer->physical_offset(piece_index, offset); }
virtual int read(char* buf, int slot, int offset, int size)
{ return m_lower_layer->read(buf, slot, offset, size); }