[ 
https://issues.apache.org/jira/browse/PROTON-2894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Timothy A. Bish resolved PROTON-2894.
-------------------------------------
    Resolution: Fixed

> [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
>            Priority: Minor
>             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-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to