You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Timothy A. Bish (Jira)" <ji...@apache.org> on 2025/05/01 20:35:00 UTC
[jira] [Created] (PROTON-2894) [protonj2] Add a peek ahead API to the buffer API to simplify codecs
Timothy A. Bish created PROTON-2894:
---------------------------------------
Summary: [protonj2] Add a peek ahead API to the buffer API to simplify codecs
Key: PROTON-2894
URL: https://issues.apache.org/jira/browse/PROTON-2894
Project: Qpid Proton
Issue Type: Improvement
Components: protonj2
Affects Versions: protonj2-1.0.0-M23
Reporter: Timothy A. Bish
Assignee: Timothy A. Bish
Fix For: protonj2-1.0.0-M24
Several of the decoders use a pattern of looking ahead by one byte to check for null encodings, this code can be simplified by adding a non-destructive peek ahead in the buffers API to facilitate this common practice and reduce several bounds checks that need to occur on each iteration of the current code.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org