Interface ProtobufDecoder.MessageSizeReader
- Enclosing class:
 ProtobufDecoder
protected static interface ProtobufDecoder.MessageSizeReader
Component to read the size of a message. Implementations must be
stateful and expect size information is potentially split
across input chunks.
- Since:
 - 7.0
 - Author:
 - Sebastien Deleuze
 
- 
Method Summary
Modifier and TypeMethodDescriptionreadMessageSize(DataBuffer input) Read the message size from the given buffer. 
- 
Method Details
- 
readMessageSize
Read the message size from the given buffer. This method may be called multiple times before the message size is fully read.- Returns:
 - return the message size, or 
nullif the data in the input buffer was insufficient 
 
 -