hashgraph / hashgraph/pbj

feat: Adding PbjReader

Open
#923 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.