feat: Adding PbjReader
- Dominant language
- Java
- Stars
- 44
- Forks
- 15
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 12
Description
New `PbjReader` class: varint/fixed-width/byte/boolean/string/bytes reads over a reusable ~16KB buffer, constructible from byte[]/ByteBuffer/Bytes/InputStream/ReadableSequentialData. Uses a sticky error code instead of throwing on every read.
**Benefit:** avoids per-call buffer allocation and checked-exception-based control flow on the hot read path.
PR: hashgraph/pbj#907
Contributor guide
Research direction
The issue describes a new PbjReader with reusable buffering, multiple input types, primitive reads, and sticky errors, but names no files or tests. Start by reviewing PR hashgraph/pbj#907 and the existing parser entry points. Done means the class supports each listed input and read type without per-call buffer allocation or repeated exceptions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100