Skip to content
Start free evaluation

pdcomm_gem_formatted_program_store_snapshot_info

Function

Reads the totals and limits captured in a snapshot.

PdcommStatus pdcomm_gem_formatted_program_store_snapshot_info(const PdcommGemFormattedProgramStoreSnapshot *snapshot, PdcommGemFormattedProgramStoreInfo *info)

Declared in: #include <pdcomm_gem_formatted_program_store.h>

Parameters

NameDescription
snapshotLive snapshot.
infoCaller storage with struct_size, version, and reserved set. On success every field is written.

Returns

#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when snapshot or info is NULL, or the info header is invalid; #PDCOMM_INTERNAL_ERROR when a panic was contained.

Notes

  • Thread safety: snapshot getters may run concurrently with each other; destruction must not overlap them.