Interface MessageDecoderFlyweight

All Superinterfaces:
DecoderFlyweight, Flyweight, MessageFlyweight

public interface MessageDecoderFlyweight extends MessageFlyweight, DecoderFlyweight
A flyweight for decoding an SBE message from a buffer.
  • Method Details

    • wrap

      MessageDecoderFlyweight wrap(DirectBuffer buffer, int offset, int actingBlockLength, int actingVersion)
      Wrap a buffer containing an encoded message for decoding.
      Parameters:
      buffer - containing the encoded message.
      offset - in the buffer at which the decoding should begin.
      actingBlockLength - the root block length the decoder should act on.
      actingVersion - the version of the encoded message.
      Returns:
      the MessageDecoderFlyweight for fluent API design.
    • appendTo

      StringBuilder appendTo(StringBuilder builder)
      Populate the supplied StringBuilder with the string representation of the message.
      Parameters:
      builder - destination for the string representation.
      Returns:
      the supplied builder for a fluent API.
    • sbeDecodedLength

      default int sbeDecodedLength()
      Gets the total length of this flyweight by moving from the end of the block though all the variable length fields.
      Returns:
      the total decoded length for the flyweight.