Encoding the remaining length
Encoding the remaining length and throwing an exception when the maximum message length is exceeded
Decoding a message remaining length
decoding remaining length throws an error when the remaining length is too long