Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #54

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading