Experimental
Decodes the given buffer.
This will be applied before deserialization.
The buffer to decode.
A promise that resolves to the decoded buffer.
Encodes the given buffer.
This will be applied after serialization.
The buffer to encode. Empty byte buffers should be appropriately handled as well.
The encoded buffer
Journal values codec.
This allows to transform journal values after being serialized, before writing them to the wire.
Values that are passed through the codec: