Decodes one or more STOMP frames from the given {@code buffer} and returns
a list of {@link Message Messages}.
<p>If the given ByteBuffer contains only partial STOMP frame content and no
complete STOMP frames, an empty list is returned, and the buffer is reset to
to where it was.
<p>If the buffer contains one ore more STOMP frames, those are returned and
the buffer reset to point to the beginning of the unused partial content.
<p>The output partialMessageHeaders map is used to store successfully parsed
headers in case of partial content. The caller can then check if a
"content-length" header was read, which helps to determine how much more
content is needed before the next attempt to decode.
@param byteBuffer the buffer to decode the STOMP frame from
@param partialMessageHeaders an empty output map that will store the last
successfully parsed partialMessageHeaders in case of partial message content
in cases where the partial buffer ended with a partial STOMP frame
@return the decoded messages, or an empty list if none
@throws StompConversionException raised in case of decoding issues
Decodes one or more STOMP frames from the given {@code buffer} and returns a list of {@link Message Messages}. <p>If the given ByteBuffer contains only partial STOMP frame content and no complete STOMP frames, an empty list is returned, and the buffer is reset to to where it was. <p>If the buffer contains one ore more STOMP frames, those are returned and the buffer reset to point to the beginning of the unused partial content. <p>The output partialMessageHeaders map is used to store successfully parsed headers in case of partial content. The caller can then check if a "content-length" header was read, which helps to determine how much more content is needed before the next attempt to decode. @param byteBuffer the buffer to decode the STOMP frame from @param partialMessageHeaders an empty output map that will store the last successfully parsed partialMessageHeaders in case of partial message content in cases where the partial buffer ended with a partial STOMP frame @return the decoded messages, or an empty list if none @throws StompConversionException raised in case of decoding issues