Package org.agrona.sbe
Interface MessageDecoderFlyweight
- All Superinterfaces:
DecoderFlyweight
,Flyweight
,MessageFlyweight
A flyweight for decoding an SBE message from a buffer.
-
Method Summary
Modifier and TypeMethodDescriptionappendTo
(StringBuilder builder) Populate the suppliedStringBuilder
with the string representation of the message.default int
Gets the total length of this flyweight by moving from the end of the block though all the variable length fields.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 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
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.
-