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 Details

    • readMessageSize

      @Nullable Integer readMessageSize(DataBuffer input)
      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 null if the data in the input buffer was insufficient