| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Motivation: AdaptiveByteBuf._setLongLE delegates to the checked setLongLE on the root parent, unlike all other _set/_get methods which use the unchecked underscore-prefixed variants. This adds redundant bounds checking and ensureAccessible() on every little-endian long write. Modification: Call rootParent()._setLongLE instead of rootParent().setLongLE. Result: _setLongLE now follows the same unchecked pattern as _setLong, _setInt, _setIntLE, etc. (cherry picked from commit 303d834)
There was a problem hiding this comment.
Lgtm
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Auto-port of #17098 to 5.0
Cherry-picked commit: 303d834
Motivation:
AdaptiveByteBuf._setLongLE delegates to the checked setLongLE on the root parent, unlike all other _set/_get methods which use the unchecked underscore-prefixed variants. This adds redundant bounds checking and ensureAccessible() on every little-endian long write.
Modification:
Call rootParent()._setLongLE instead of rootParent().setLongLE.
Result:
_setLongLE now follows the same unchecked pattern as _setLong, _setInt, _setIntLE, etc.