From 8dfabab78c22c0cb39dca8dbbc2f78bd1b0345af Mon Sep 17 00:00:00 2001 From: will Date: Fri, 25 Sep 2020 09:17:17 +0100 Subject: [PATCH] appendTo method added to MessageDecoderFlyweight --- .../main/java/org/agrona/sbe/MessageDecoderFlyweight.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/agrona/src/main/java/org/agrona/sbe/MessageDecoderFlyweight.java b/agrona/src/main/java/org/agrona/sbe/MessageDecoderFlyweight.java index 7d5b55d45..80605024e 100644 --- a/agrona/src/main/java/org/agrona/sbe/MessageDecoderFlyweight.java +++ b/agrona/src/main/java/org/agrona/sbe/MessageDecoderFlyweight.java @@ -32,4 +32,12 @@ public interface MessageDecoderFlyweight extends MessageFlyweight, DecoderFlywei * @return the {@link MessageDecoderFlyweight} for fluent API design. */ MessageDecoderFlyweight wrap(DirectBuffer buffer, int offset, int actingBlockLength, int actingVersion); + + /** + * Populate the supplied StringBuilder with the string representation of the message. + * + * @param builder destination for the string + * @return the supplied builder + */ + StringBuilder appendTo(StringBuilder builder); }