kencode

asTransform

Wraps this Checksum as a PayloadTransform that appends the digest on encode and strips and verifies it on decode.

then

Chains two transforms into a pipeline.

On encode: this is applied first, then next. On decode: next is reversed first, then this.

Example: CompactZeros.then(Crc16.asTransform()) compacts bytes, then appends a checksum.