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

case to handle if a pattern could spill over into another data chunk #12

Open
wurgg opened this issue Mar 13, 2023 · 0 comments
Open

case to handle if a pattern could spill over into another data chunk #12

wurgg opened this issue Mar 13, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@wurgg
Copy link
Owner

wurgg commented Mar 13, 2023

more of an edge case, but we need to handle if a pattern can continue over chunk boundaries.

// This block is what allows us to detect matches over chunk boundaries.
// When we're close enough to a boundary that a pattern match could overrun, we
// copy the final bytes in the buffer to the start of the buffer, then read into
// the rest of the buffer.

@wurgg wurgg added the enhancement New feature or request label Mar 13, 2023
@wurgg wurgg self-assigned this Mar 13, 2023
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