Skip to content
Start free evaluation

PDComm.Gem300CapabilitySnapshot

Class

An immutable copy of a Gem300CapabilityCatalog at one revision.

public sealed class Gem300CapabilitySnapshot : GemOwnedSnapshot

Get one from Gem300CapabilityCatalog.Snapshot. It owns its native memory, stays valid after the catalog changes or is disposed, and must be disposed by the caller.

Members

GetInfo

Method

Gets the revision and size of the catalog when the snapshot was taken.

public Gem300CapabilityCatalogInfo GetInfo()

Returns

The revision, the profile and capability counts, and the total identifier bytes.

Notes

  • Throws ObjectDisposedException: The snapshot was disposed.
  • Throws PdcommException: The native library rejected the call.

GetProfile

Method

Gets one profile of the snapshot with all of its capabilities.

public Gem300CapabilityProfile GetProfile(nuint index)

Parameters

NameDescription
indexThe zero-based profile position, less than Gem300CapabilityCatalogInfo.ProfileCount.

Returns

A managed copy of the profile and its capabilities in catalog order.

Notes

  • Throws ObjectDisposedException: The snapshot was disposed.
  • Throws PdcommException: PdcommStatus.OutOfRange when index is not a valid profile position.