Skip to content

Commit

Permalink
Update README.md (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzq50 authored Feb 19, 2024
1 parent 1f7e18b commit 7e2e6e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ and deserialize on the little endian systems. (Big endian systems are vanishingl
If you want a C++ version, you can roll your own:

```C++
#include "xorfilter.h"
#include "binaryfusefilter.h"

class BinaryFuse {
public:
Expand All @@ -87,7 +87,7 @@ public:
binary_fuse8_free(&filter);
}

bool AddAll(const uint64_t* data, const size_t start, const size_t end) {
bool AddAll(uint64_t* data, const size_t start, const size_t end) {
return binary_fuse8_populate(data + start, end - start, &filter);
}
inline bool Contain(uint64_t &item) const {
Expand All @@ -97,7 +97,7 @@ public:
return binary_fuse8_size_in_bytes(&filter);
}
BinaryFuse(BinaryFuse && o) : filter(o.filter) {
o.filter.fingerprints = nullptr; // we take ownership for the data
o.filter.Fingerprints = nullptr; // we take ownership for the data
}
binary_fuse8_t filter;

Expand Down

0 comments on commit 7e2e6e7

Please sign in to comment.