Changeset 1172 for trunk/libtorrent/src/data/chunk_part.cc
- Timestamp:
- 08/25/10 03:14:19 (21 months ago)
- Files:
-
- 1 modified
-
trunk/libtorrent/src/data/chunk_part.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtorrent/src/data/chunk_part.cc
r939 r1172 62 62 63 63 uint32_t 64 ChunkPart::incore_length(uint32_t pos ) {64 ChunkPart::incore_length(uint32_t pos, uint32_t length) { 65 65 // Do we want to use this? 66 pos -= m_position; 66 length = std::min(length, remaining_from(pos)); 67 pos = pos - m_position; 67 68 68 69 if (pos >= size()) 69 70 throw internal_error("ChunkPart::incore_length(...) got invalid position"); 70 71 71 int length = size() - pos;72 72 int touched = m_chunk.pages_touched(pos, length); 73 73 char buf[touched];
