Motivation:
To ensure that failing tests flag more accurately.
Modifications:
Added AssetNoThrow around calls in tests that can throw.
Result:
Tests flag more accurately and at the source of the problem.
Motivation:
To ensure that non ascii strings work in the test.
Modifications:
One more change to standardDataStringCount forgotten in the last commit.
Result:
Non ascii strings work.
Removed unnecessary tests and improved test safety across platforms.
Motivation:
To reduce buffer allocations and neaten tests.
Modifications:
Moved the length buffer in the length field prepender to be a member variable.
Ensured that string counts in the tests use utf8 format.
Removed unnecessary tests related to testing bytes remaining in buffers.
Result:
Less buffer allocations.
Neater, more accurate tests.
Motivation:
To improve the efficiency of the class.
Modifications:
Now inherits from ChannelOutboundHandler rather than MessageToByteEncoder.
Writes directly to the context buffer.
Corrects an error where one of the public type-aliases was incorrectly set.
Updates unit tests to account for multiple context buffer writes.
Result:
Removes unnecessary buffer writes.
Motivation:
To enhance error reporting.
Modifications:
Added a LengthFieldPrependerError which has a messageDataTooLongForLengthField that is thrown if the length is too long.
An additional test to check that the error is thrown.
Some neatening of comments.
Result:
A clear error will be returned is the length is too long for the header.
This class is a type of byte to message encoder.
Motivation:
To encode a prepended length field on data so that messages of arbitrary size can be sent.
Can work as a pair with the ‘LengthFieldBasedFrameDecoder’.
Modifications:
Added ‘LengthFieldPrepender’
Added unit tests for ‘LengthFieldPrepender’ in ‘LengthFieldPrependerTest’
Updated the linux text files by running the script.
Result:
The length can now be easily prepended to any message.