PDComm.GemConstantOptions
Class
Configures the equipment constant store of a GemEquipment.
public sealed record GemConstantOptionsPass the options to GemEquipment.ConfigureConstants. The store rejects options whose GemConstantOptions.MaxConstants, GemConstantOptions.MaxValueBytes or any GemConstantOptions.ItemLimits field is zero.
Members
GemConstantOptions
Constructor
Initializes a new instance with default values.
public GemConstantOptions()Notes
- Set every
requiredproperty of the type in an object initializer.
ItemLimits
Property
Gets the SECS-II limits that every stored value must satisfy.
public required SecsLimits ItemLimits { get; init; }MaxChangesPerRequest
Property
Gets the maximum number of ECID/ECV pairs that one received S2F15 request can carry.
public required nuint MaxChangesPerRequest { get; init; }MaxConstants
Property
Gets the maximum number of equipment constants (ECIDs) the store can hold.
public required nuint MaxConstants { get; init; }MaxIdentifierBytes
Property
Gets the maximum length in bytes of an ASCII constant ID, in definitions and in received requests.
public required nuint MaxIdentifierBytes { get; init; }MaxMetadataBytes
Property
Gets the maximum total bytes of all ASCII constant IDs, names (ECNAME) and units (UNITS) in the store.
public required nuint MaxMetadataBytes { get; init; }Integer IDs do not count against this budget.
MaxQueryIds
Property
Gets the maximum number of IDs that one received S2F13 or S2F29 request can carry.
public required nuint MaxQueryIds { get; init; }MaxValueBytes
Property
Gets the maximum total encoded bytes of all current, default, minimum and maximum values in the store.
public required nuint MaxValueBytes { get; init; }