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 checked subviews for borrowed byte buffers #759
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.
Bytes and BytesMut support construction and validity checks but no checked subview operation. Packet parsers currently repeat pointer/offset/length validation.
Add offset/count subview helpers for immutable and mutable borrowed views, following existing checked byte API conventions. Do not allocate or transfer ownership.
Difficulty: easy.
Completion criteria
Cover empty views/ranges, end-of-buffer ranges, negatives and out-of-bounds requests.
Check ranges without overflowing offset+count or forming invalid pointers.
Preserve the output on failure and keep the documented null/empty-view policy.
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