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

Consider non-padded fallback parse functions to eliminate need for padded input #174

Open
k0ekk0ek opened this issue Mar 27, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@k0ekk0ek
Copy link
Contributor

The scanner copies the last block of input before analyzing, but many parse functions require the guarantee that input is properly padded. For parsing files this is fine because the logic is hidden from the user. For parsing string inputs this is not the case and the user is required to pass a null-terminated but padded string, which is somewhat of a weird interface. It is possible to return a specialized error code from advance if not enough data is available anymore to guarantee enough padding for vectorized operation and fallback to stricter fallback parsing in that case. For now it's a little too much to pickup for the initial release, but it may be a nice usability improvement for a future release.

@k0ekk0ek k0ekk0ek added the enhancement New feature or request label Mar 27, 2024
@k0ekk0ek k0ekk0ek added this to the Release 0.2.0 milestone Mar 27, 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