ghostty_snapshot_decoder_free function

  1. @Native<Void Function(GhosttySnapshotDecoder)>(GhosttySnapshotDecoder)>()
void ghostty_snapshot_decoder_free(
  1. GhosttySnapshotDecoder decoder
)

Free a snapshot decoder.

This does not release the caller's ownership of a terminal returned by ready or decode. Abandoning an incremental decode leaves that terminal usable with whatever history had already been restored.

@param decoder Decoder to free (may be NULL)

@ingroup snapshot

Implementation

@ffi.Native<ffi.Void Function(GhosttySnapshotDecoder)>()
external void ghostty_snapshot_decoder_free(GhosttySnapshotDecoder decoder);