Package org.agrona.sbe
Interface MessageDecoderFlyweight
-
- All Superinterfaces:
DecoderFlyweight
,Flyweight
,MessageFlyweight
public interface MessageDecoderFlyweight extends MessageFlyweight, DecoderFlyweight
A flyweight for decoding an SBE message from a buffer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.StringBuilder
appendTo(java.lang.StringBuilder builder)
Populate the suppliedStringBuilder
with the string representation of the message.default int
sbeDecodedLength()
Gets the total length of this flyweight by moving from the end of the block though all the variable length fields.MessageDecoderFlyweight
wrap(DirectBuffer buffer, int offset, int actingBlockLength, int actingVersion)
Wrap a buffer containing an encoded message for decoding.-
Methods inherited from interface org.agrona.sbe.Flyweight
buffer, encodedLength, offset, sbeSchemaId, sbeSchemaVersion
-
Methods inherited from interface org.agrona.sbe.MessageFlyweight
limit, limit, sbeBlockLength, sbeSemanticType, sbeTemplateId
-
-
-
-
Method Detail
-
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
java.lang.StringBuilder appendTo(java.lang.StringBuilder builder)
Populate the suppliedStringBuilder
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.
-
-