pub const MAX_VALUE: Type = 2147483647;Expand description
Generation stamp of the last content mutation to this storage: any image transmit/replace, placement add, or delete. Zero means the storage has never been mutated (and is therefore empty).
If the generation is unchanged since a previous query, the set of placements and all image data are identical, so placement iteration and image staleness checks can be skipped entirely. Note that placement geometry may still have changed (scrolling and resizing move placements without changing the storage contents), so rendering geometry such as ghostty_kitty_graphics_placement_render_info() must still be recomputed for frames marked dirty.
Stamps are unique and monotonically increasing process-wide: a value observed from any storage never recurs for different content, even across screen switches (main vs. alternate screen have independent storages) or terminal resets. It is therefore safe to key caches on this value alone.
Output type: uint64_t *