def dec.finish
import bend-kit-zlib@0.5.1.0/zlib.bend as Zlibimport Base
1128# Finish validates the end marker and always releases the decoder.
1129def dec.finish(d: Decoder) -> IO(Result<&1, &1, U32 & String, Unit>):
1130 Decoder{+id} = d
1131 dec.finish.id(id)