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

Util to determine the bytes consumed by a stream #21

Open
kammce opened this issue May 30, 2024 · 0 comments
Open

Util to determine the bytes consumed by a stream #21

kammce opened this issue May 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@kammce
Copy link
Member

kammce commented May 30, 2024

Streams return the amount of data remaining, but do not give back information about how many bytes were consumed by the pipeline. This information is helpful as it can be used to shovel the data that was consumed into other parallel pipelines.

Currently:

auto remaining = input | fill | find | parse<unsigned>;
// We get how much is left of input, but we don't know how much of input was consumed by the pipeline

See libhal-google#8 for the previous discussion.

@kammce kammce added the enhancement New feature or request label May 30, 2024
@kammce kammce changed the title Function or object that determines the consumed byte count by a stream Util to determine the bytes consumed by a stream May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant