You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add bounded search and comparison for byte views #760
enhancementA request for a new feature or improvement.good first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
The search/comparison helpers operate on NUL-terminated str. Bytes views have no equivalent bounded helpers for protocol payloads containing zero bytes.
Add equality, single-byte search and first-subsequence search over explicit byte lengths. Use checked result conventions so invalid input is distinguishable from no match. An empty needle matches at offset zero. Do not allocate, mutate inputs or change string helpers (#715/#716).
Difficulty: easy.
Completion criteria
Cover embedded NUL, empty inputs, missing matches and a needle longer than the input.
Find first/last-position and overlapping candidate matches correctly.
Reject invalid views without reading out of bounds.
enhancementA request for a new feature or improvement.good first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
Activity