When the goal is to turn the contents of a buffer into a String it is
more efficient and simpler to directly use the toString(Charset) method
of ByteBuf instead of fetching the byte data and manually creating a
string.
This PR replaces the two spots where buffers are turned into Strings using the "old" way.
When the goal is to turn the contents of a buffer into a String it is more efficient and simpler to directly use the toString(Charset) method of ByteBuf instead of fetching the byte data and manually creating a string.
This PR replaces the two spots where buffers are turned into Strings using the "old" way.