a simple frame codec that uses a length prefix to separate frames
Decode a frame from a buffer
Important implementation notice: When returning byte arrays, make sure that the returned array is not a view into the original buffer, as the underlying buffer may get invalidated
Encode a frame into a writable stream
Reset the encoder, should it have any internal state
a simple frame codec that uses a length prefix to separate frames