diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-06-27 23:28:57 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-06-27 23:28:57 +0900 |
| commit | c30ea8adeb8887a7326e745ffdfebd75b6f2f2f3 (patch) | |
| tree | 22dbb38eda2f9a751652afd3fe49447de40a9baf /src/BitfieldMan.h | |
| parent | 68f225de0b66968e232d838b29dd1e12f10f3302 (diff) | |
Don't sum in-flight piece which does not intersect filtered ranges
When calculating completed length, don't sum the completed length of
piece which does not intersect filtered ranges.
Diffstat (limited to 'src/BitfieldMan.h')
| -rw-r--r-- | src/BitfieldMan.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/BitfieldMan.h b/src/BitfieldMan.h index 818e6957..f82557d4 100644 --- a/src/BitfieldMan.h +++ b/src/BitfieldMan.h @@ -200,6 +200,9 @@ public: bool isAllBitSet() const; bool isAllFilterBitSet() const; + // Returns true if index bit is set in filterBitfield_. If + // filterBitfield_ is NULL, returns false. + bool isFilterBitSet(size_t index) const; const unsigned char* getBitfield() const { |
