Shally-Katariya opened a new pull request, #21371:
URL: https://github.com/apache/kafka/pull/21371

   ### Motivation
   
   The Deserializer interface currently does not clearly specify how a 
`ByteBuffer`'s
   `position` and `limit` should be treated during and after deserialization.
   This ambiguity can lead to inconsistent implementations and incorrect 
assumptions
   by callers.
   
   ### Changes
   
   - Clarified the contract for `Deserializer#deserialize(String, Headers, 
ByteBuffer)`
     to state that implementations should read from the buffer’s current 
position,
     may advance the position by the number of bytes consumed, and must not 
modify
     the buffer limit.
   - Documented that callers should not make assumptions about the buffer 
position
     after deserialization.
   
   ### Notes
   
   This change is documentation-only and does not modify runtime behavior.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to