fn finalize_frame( zstd_compression_level: u16, encoder: &mut Encoder<'static, Writer<BytesMut>>, ) -> Result<Bytes>