Skip to content

Commit

Permalink
Introduce getBlobIndex.
Browse files Browse the repository at this point in the history
This is use in zim-check to not count clone entries as duplicated entries.
  • Loading branch information
mgautierfr authored and kelson42 committed Nov 1, 2023
1 parent 18add14 commit f111b5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/zim/item.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ namespace zim

#ifdef ZIM_PRIVATE
cluster_index_type getClusterIndex() const;
blob_index_type getBlobIndex() const;
#endif

private: // data
Expand Down
5 changes: 5 additions & 0 deletions src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,8 @@ cluster_index_type Item::getClusterIndex() const
{
return m_dirent->getClusterNumber().v;
}

blob_index_type Item::getBlobIndex() const

Check warning on line 107 in src/item.cpp

View check run for this annotation

Codecov / codecov/patch

src/item.cpp#L107

Added line #L107 was not covered by tests
{
return m_dirent->getBlobNumber().v;
}

0 comments on commit f111b5f

Please sign in to comment.