We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
find_first(offset)
Motivating example:
void put_chunk(Packet const& chunk) { std::memcpy( message.buffer + chunk.position * CHUNK_SIZE, chunk.data, CHUNK_SIZE); missing.reset(chunk.position); } bool complete() { received = (received == 0 ? missing.find_first() : missing.find_next(received - 1)); return received == boost::dynamic_bitset<>::npos; }
with find_first(offset), complete() becomes:
complete()
bool complete() { received = missing.find_first(received); return received == boost::dynamic_bitset<>::npos; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Motivating example:
with
find_first(offset)
,complete()
becomes:The text was updated successfully, but these errors were encountered: