Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add checked subviews for borrowed byte buffers

クローズ 初心者向け
#759 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust
領域
compilers

調査の方向性

std/bytes/types.wave から始め、immutable および mutable の borrowed view に対する既存の checked byte API の規約に従ってください。オフセット/カウントによるサブビューのヘルパーを、アロケーションや所有権の移転なしで追加し、その後、empty、バッファ末尾、negative、範囲外、オーバーフロー、ポインタの有効性、failure-output のケースを対象とする、O0 と O2 でのアロケーションなしの境界テストを実行してください。

索引モデルが issue の本文から書いたものです。

説明

enhancement good first issue needs testing

Motivation

Bytes and BytesMut support construction and validity checks but no checked subview operation. Packet parsers currently repeat pointer/offset/length validation.

Starting points: std/bytes/types.wave.

Scope

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.
  • Run allocation-free O0/O2 boundary tests.
主要言語
Rust
スター
56
フォーク
21
平均マージ
2時間 37分
マージ済み PR(30日)
57

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wavefnd/Wave のほかの issue

wavefnd/Wave の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。