CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
ComponentMemory.h
Go to the documentation of this file.
1
18
19#if !defined(_COMPONENTMEMORY_H_)
20#define _COMPONENTMEMORY_H_
21
22#include "MemoryManager.h"
23#include "PsyTime.h"
24#include "Subscriptions.h"
25
26namespace cmlabs {
27
28
31#define COMPSTATUS_IDLE 1
32#define COMPSTATUS_STARTING 2
33#define COMPSTATUS_RUNNING 3
34#define COMPSTATUS_FINISHED 4
36
38#define NOTINUSE 65535
39
44#define GETCOMPOFFSETP(header,id) ((uint64*)(((char*)(header)) + sizeof(ComponentMemoryStruct) + ((id)*sizeof(uint64))))
45#define GETCOMPOFFSET(header,id) *GETCOMPOFFSETP(header,id)
46#define GETCOMPDATA(header,id) ((ComponentInfoStruct*)(GETCOMPOFFSET(header,id) ? ((char*)(header)) + ((header)->indexSize * sizeof(uint64)) + GETCOMPOFFSET(header,id) : NULL))
48
53 uint64 size;
54 uint32 cid;
55 uint64 createdTime; // time of creation
56 uint32 indexSize;
57 uint32 count;
58 uint32 maxID;
59 uint64 usage;
60 // index * N, each a uint64
61};
62
65#define PARAM_STRING 1
66#define PARAM_INTEGER 2
67#define PARAM_FLOAT 3
68#define PARAM_STRING_COLL 4
69#define PARAM_INTEGER_COLL 5
70#define PARAM_FLOAT_COLL 6
71#define PARAM_TYPE_COLL 7
73
75#define COMPONENT_CAN_MIGRATE 1
78#define COMPONENT_PAUSED 0x80
79
84struct ComponentStats {
85 uint64 time;
86 uint64 msgInCount;
87 uint64 msgInBytes;
89 uint64 msgOutCount;
90 uint64 msgOutBytes;
94 uint64 cycleCount;
95 uint64 runCount;
98 uint32 recentInPos; // circular write index into recentInMsg ring (newest written here, then advanced)
99 uint32 recentOutPos; // circular write index into recentOutMsg ring
101 std::string toXML() {
102 std::string xmlIn, xmlOut;
103 int n;
104 const char* oldData = NULL;
105 DataMessage* msg = new DataMessage();
106 char* msgData = recentInMsg;
107 for (n = 0; n < 10; n++) {
108 if (((DataMessageHeader*)msgData)->time) {
109 if (!oldData) oldData = msg->swapMessageData(msgData);
110 else msg->swapMessageData(msgData);
111 xmlIn += msg->toXML();
112 }
113 msgData += DRAFTMSGSIZE;
114 }
115 msgData = recentOutMsg;
116 for (n = 0; n < 10; n++) {
117 if (((DataMessageHeader*)msgData)->time) {
118 if (!oldData) oldData = msg->swapMessageData(msgData);
119 else msg->swapMessageData(msgData);
120 xmlOut += msg->toXML();
121 }
122 msgData += DRAFTMSGSIZE;
123 }
124 if (oldData)
125 msg->swapMessageData(oldData);
126 delete(msg);
127 return utils::StringFormat("<componentstats runcount=\"%llu\" msgincount=\"%llu\" msginbytes=\"%llu\" msgoutcount=\"%llu\" msgoutbytes=\"%llu\" time=\"%llu\">\n<inmsg>\n%s</inmsg>\n<outmsg>\n%s</outmsg>\n</componentstats>\n",
128 runCount, msgInCount, msgInBytes, msgOutCount, msgOutBytes, time, xmlIn.c_str(), xmlOut.c_str());
129 }
130};
131
134#define SELFTRIGGER_NONE 0
135#define SELFTRIGGER_WARN 1
136#define SELFTRIGGER_ALLOW 2
138
139
145 uint64 size;
146 uint32 id;
149 uint8 type;
150 uint8 status;
151 uint8 policy;
152 uint16 nodeID;
153 uint16 procID;
154 // Basic data
155 uint64 createdTime;
159 // Statistics
162 // Parameters
164 uint32 paramSize;
165 // Private Data
166 uint16 dataCount;
167 uint64 dataSize;
168
169 std::string toXML(bool printStats = true) {
170 if (printStats)
171 return utils::StringFormat("<component id=\"%u\" status=\"%u\" name=\"%s\" node=\"%u\" proc=\"%u\" type=\"%u\" policy=\"%u\" paramcount=\"%u\" paramsize=\"%u\" datacount=\"%u\" datasize=\"%llu\" createdtime=\"%llu\" migratedtime=\"%llu\" lastupdatetime=\"%llu\" selftrigger=\"%u\">\n%s%s</component>\n",
173 else
174 return utils::StringFormat("<component id=\"%u\" status=\"%u\" name=\"%s\" node=\"%u\" proc=\"%u\" type=\"%u\" policy=\"%u\" paramcount=\"%u\" paramsize=\"%u\" datacount=\"%u\" datasize=\"%llu\" createdtime=\"%llu\" migratedtime=\"%llu\" lastupdatetime=\"%llu\" selftrigger=\"%u\" />\n",
176 }
177 bool writeToMsg(uint32 n, DataMessage* msg) {
178 if (!msg) return false;
179 msg->setInt((int64)n, "ID", id);
180 msg->setInt((int64)n, "Status", status);
181 msg->setInt((int64)n, "Type", type);
182 msg->setInt((int64)n, "Policy", policy);
183 msg->setInt((int64)n, "SelfTrigger", selfTrigger);
184 msg->setInt((int64)n, "Size", size);
185 msg->setInt((int64)n, "NodeID", nodeID);
186 msg->setInt((int64)n, "ProcID", procID);
187 msg->setString((int64)n, "Name", name);
188 msg->setTime((int64)n, "CreatedTime", createdTime);
189 return true;
190 }
191};
192
194#define COMPINFOUSAGE(info) (sizeof(ComponentInfoStruct) + info->paramSize + info->dataSize)
195
200 uint64 size;
201 // name, 0, mimetype, 0, data
202};
203
209 uint32 size;
210 uint8 type;
211 // name, 0, struct
212};
213
214// -- integer --
218 int64 val;
220 int64 minVal;
221 int64 maxVal;
222 int64 interval;
223};
224
225// -- float --
229 float64 val;
230 float64 defaultVal;
231 float64 minVal;
232 float64 maxVal;
233 float64 interval;
234};
235
236// -- integer collection --
240 uint32 index;
242 uint32 count;
243};
244
247struct ParamInfo {
248 std::string name;
249 uint8 type;
250 std::string value;
251 std::string defaultValue;
252 std::string minVal, maxVal;
253 std::string step;
254 std::vector<std::string> options;
257};
258
261#define CHECKCOMPONENTMEMORYSERIAL if (serial != master->getComponentShmemSerial()) {if (!open()) {mutex->leave();return 0;}}
262#define CHECKCOMPONENTMEMORYSERIALRETURN(a) if (serial != master->getComponentShmemSerial()) {if (!open()) {mutex->leave();return a;}}
263
264class MasterMemory;
280public:
281 static bool UnitTest();
282
286
288 bool getMemoryUsage(uint64& alloc, uint64& usage);
289
290 bool open();
292 bool create(uint32 indexSize);
293
294 std::vector<ComponentInfoStruct>* getAllComponents();
295 std::vector<ComponentInfoStruct>* getAllLocalComponents();
296 std::vector<ComponentInfoStruct>* getAllLocalComponents(uint8 type);
297 std::vector<ComponentInfoStruct>* getAllModules();
298 std::vector<ComponentInfoStruct>* getAllCatalogs();
299
302 bool syncComponents(DataMessage* msg);
303
304 bool confirmComponentID(uint32 id);
305 bool cancelComponentID(uint32 id);
310 uint8 lookupComponentID(const char* name, uint32 &id); // status = 0: not there, 1: in-sync, 2: ready
317 bool createComponent(uint32 id, uint8 type, uint8 policy, uint8 selfTrigger, const char* name, uint64 size, uint16 nodeID, uint16 procID, uint64 time, uint32& existingID);
318// bool recordRemoteComponent(uint32 id, const char* name, uint16 nodeID, uint64 time);
319// bool reserveComponentID(uint32 id, const char* name);
320 bool destroyComponent(uint32 cid);
321 bool getComponentName(uint32 cid, char* name, uint32 maxNameLen);
322 std::string getComponentNameString(uint32 cid);
323 uint8 getComponentType(uint32 cid);
324 bool getComponentID(const char* name, uint32 &cid);
326 bool setComponentStats(uint32 cid, ComponentStats& stats);
328 bool setComponentPerfStats(uint32 cid, AveragePerfStats &perfStruct);
329
330 bool isComponentLocal(uint32 cid);
331 bool isComponentLocal(const char* name);
332 bool getComponentLocation(uint32 cid, uint16& nodeID, uint16& procID);
333 uint8 getComponentPolicy(uint32 cid);
335 bool updateComponentInformation(uint32 cid, uint8 type, uint8 policy, uint8 selfTrigger, uint16 nodeID, uint16 procID);
336 bool setComponentPolicy(uint32 cid, uint8 policy);
337 bool setComponentPaused(uint32 cid, bool paused);
338 bool isComponentPaused(uint32 cid);
339 uint8 getComponentSelfTrigger(uint32 cid);
340 bool setComponentSelfTrigger(uint32 cid, uint8 selfTrigger);
341 uint16 getComponentNodeID(uint32 cid);
342 uint16 getComponentProcessID(uint32 cid);
343 bool updateComponentLocation(uint32 cid, uint16 nodeID, uint16 procID);
344 // char* GetAndRemoveComponent(uint32 cid, uint32& dataSize);
345 // bool addExistingComponent(uint32 cid, uint16 nodeID, uint16 procID, char* oldData, uint32 dataSize);
346 // bool updateRemoteComponent(uint32 cid, uint16 nodeID, uint16 procID, const char* name);
349 bool addComponentStats(uint32 cid, uint8 status, uint64 usageCPUTicks,
350 DataMessage* inputMsg, DataMessage* outputMsg, uint32 runCount, uint32 cycleCount);
351
352 bool canComponentMigrate(uint32 cid);
353 std::list<uint16>* findProcessComponents(uint16 procID);
354
357 char* getComponentData(uint32 cid, uint64& size);
359 bool setComponentData(uint32 cid, const char* data, uint64 size, bool wasMigrated);
360
361 // Private Data
365 bool setPrivateData(uint32 cid, const char* name, const char* data, uint64 size, const char* mimetype = NULL);
366 uint64 getPrivateDataSize(uint32 cid, const char* name);
367 std::string getPrivateDataMimetype(uint32 cid, const char* name);
368 bool getPrivateData(uint32 cid, const char* name, char* data, uint64 maxSize);
369 char* getPrivateDataCopy(uint32 cid, const char* name, uint64 &size);
370 bool deletePrivateData(uint32 cid, const char* name);
371 std::map<std::string, std::string> getPrivateDataKeysAndTypes(uint32 cid);
372 std::list<std::string> getPrivateDataKeys(uint32 cid);
374
375 // Parameters
381 bool createParameter(uint32 cid, const char* name, const char* val, const char* defaultValue = NULL);
382 bool createParameter(uint32 cid, const char* name, const char* val, uint32 count, uint32 defaultIndex);
383 bool createParameter(uint32 cid, const char* name, std::vector<std::string> values, const char* defaultValue = NULL);
384 bool createParameter(uint32 cid, const char* name, int64* val, uint32 count, uint32 defaultIndex);
385 bool createParameter(uint32 cid, const char* name, std::vector<std::string> values, int64 defaultValue);
386 bool createParameter(uint32 cid, const char* name, std::vector<int64> values, int64 defaultValue = 0);
387 bool createParameter(uint32 cid, const char* name, float64* val, uint32 count, uint32 defaultIndex);
388 bool createParameter(uint32 cid, const char* name, std::vector<std::string> values, float64 defaultValue);
389 bool createParameter(uint32 cid, const char* name, std::vector<float64> values, float64 defaultValue = 0);
390 bool createParameter(uint32 cid, const char* name, int64 val, int64 min = 0, int64 max = 0, int64 interval = 0);
391 bool createParameter(uint32 cid, const char* name, float64 val, float64 min = 0, float64 max = 0, float64 interval = 0);
393
394 bool hasParameter(uint32 cid, const char* name);
395 bool deleteParameter(uint32 cid, const char* name);
396
401 uint8 getParameterDataType(uint32 cid, const char* name);
402 uint32 getParameterValueSize(uint32 cid, const char* name);
403 bool getParameter(uint32 cid, const char* name, char* val, uint32 maxSize);
404 bool getParameter(uint32 cid, const char* name, int64& val);
405 bool getParameter(uint32 cid, const char* name, float64& val);
406 std::string getParameterString(uint32 cid, const char* name, uint32 maxSize);
407 std::string getParameterString(uint32 cid, const char* name);
408 int64 getParameterInt(uint32 cid, const char* name);
409 float64 getParameterFloat(uint32 cid, const char* name);
410 bool getParameterAsBool(uint32 cid, const char* name);
411
412 bool setParameter(uint32 cid, const char* name, const char* val);
413 bool setParameter(uint32 cid, const char* name, int64 val);
414 bool setParameter(uint32 cid, const char* name, float64 val);
415
416 bool resetParameter(uint32 cid, const char* name);
417 bool tweakParameter(uint32 cid, const char* name, int32 tweak);
420 bool getParameterInfo(uint32 cid, std::vector<ParamInfo>& out);
421 static const char* ParamTypeName(uint8 type);
425 std::string checkIntegrity();
427
428 bool addLocalPerformanceStats(std::list<PerfStats> &perfStats);
429 std::string printFriendly();
430 std::string toXML(bool stats = true);
431
432private:
433 bool resize(uint64 newMemorySize);
434 bool resizeIndex(uint32 newIndexSize);
435 bool resizeComponent(uint32 id, uint64 newSize);
436 bool growComponent(uint32 id, uint64 addSize);
437 bool getSurroundingComponents(uint32 cid, uint32& prevID, uint32& nextID);
438
439 char* makeRoomForPrivateData(uint32 cid, uint64 newSize);
440 char* makeRoomForParameter(uint32 cid, uint64 newSize);
441
442 ParamHeader* getParameter(uint32 cid, const char* name);
443 PrivateHeader* getPrivateData(uint32 cid, const char* name);
444
445 utils::Mutex* mutex;
446 MasterMemory* master;
447 ComponentMemoryStruct* header;
448 uint64 memorySize;
449 uint16 port;
450 uint32 serial;
451};
452
453} // namespace cmlabs
454
455#endif //_COMPONENTMEMORY_H_
456
Central shared-memory manager for a Psyclone node: master segment, per-subsystem shared maps and the ...
#define DRAFTMSGSIZE
Fixed byte size of the per-message draft slots used in the recent-message rings of ComponentStats / P...
CMSDK time: µs-resolution 64-bit timestamps and the Time Mapping Constant (TMC).
Subscription, trigger, retrieval, query, post and signal specifications — the declarative wiring of a...
#define MAXKEYNAMELEN
Definition Utils.h:85
bool setParameter(uint32 cid, const char *name, const char *val)
bool writeComponentsToMsg(DataMessage *msg)
Serialize all component records into msg.
bool create(uint32 indexSize)
Create the component segment (master only).
uint16 getComponentNodeID(uint32 cid)
bool getComponentName(uint32 cid, char *name, uint32 maxNameLen)
Copy the component name into name.
bool getParameterInfo(uint32 cid, std::vector< ParamInfo > &out)
Every parameter of component cid, in creation order, with type, value, default, range,...
bool open()
Attach to the existing component segment.
bool getParameterAsBool(uint32 cid, const char *name)
bool syncComponents(DataMessage *msg)
Merge component records received from a remote node.
std::string getComponentNameString(uint32 cid)
bool updateComponentInformation(uint32 cid, uint8 type, uint8 policy, uint8 selfTrigger, uint16 nodeID, uint16 procID)
Update type/policy/self-trigger/location in one call.
bool deletePrivateData(uint32 cid, const char *name)
Delete blob name.
bool updateComponentLocation(uint32 cid, uint16 nodeID, uint16 procID)
Record a new location (after migration).
std::vector< ComponentInfoStruct > * getAllModules()
Snapshot all module components.
uint8 getParameterDataType(uint32 cid, const char *name)
bool deleteParameter(uint32 cid, const char *name)
Remove the parameter.
bool setComponentStats(uint32 cid, ComponentStats &stats)
Overwrite the component's stats.
bool cancelComponentID(uint32 id)
Release a provisionally reserved component id.
bool getComponentID(const char *name, uint32 &cid)
Look up a component id by name.
AveragePerfStats getComponentPerfStats(uint32 cid)
uint16 getComponentProcessID(uint32 cid)
bool setComponentData(uint32 cid, const char *data, uint64 size, bool wasMigrated)
Replace a component's data area (after migration).
bool addLocalPerformanceStats(std::list< PerfStats > &perfStats)
Append PerfStats for all local components.
bool tweakParameter(uint32 cid, const char *name, int32 tweak)
Step the value by tweak * interval (or collection index).
char * getPrivateDataCopy(uint32 cid, const char *name, uint64 &size)
ComponentMemory(MasterMemory *master)
static const char * ParamTypeName(uint8 type)
std::list< std::string > getPrivateDataKeys(uint32 cid)
uint8 lookupComponentID(const char *name, uint32 &id)
Look up a component by name without filtering on readiness.
bool destroyComponent(uint32 cid)
Remove a component record and free its space.
float64 getParameterFloat(uint32 cid, const char *name)
uint32 getParameterValueSize(uint32 cid, const char *name)
uint8 getComponentPolicy(uint32 cid)
bool confirmComponentID(uint32 id)
Mark a provisionally reserved component id as ready (syncStatus 2).
bool getPrivateData(uint32 cid, const char *name, char *data, uint64 maxSize)
Copy blob into caller buffer data (max maxSize).
bool canComponentMigrate(uint32 cid)
std::string getPrivateDataMimetype(uint32 cid, const char *name)
bool getComponentLocation(uint32 cid, uint16 &nodeID, uint16 &procID)
Get the node/process the component runs in.
std::list< uint16 > * findProcessComponents(uint16 procID)
List ids of components in process procID.
std::vector< ComponentInfoStruct > * getAllComponents()
Snapshot all components.
uint64 getPrivateDataSize(uint32 cid, const char *name)
std::vector< ComponentInfoStruct > * getAllCatalogs()
Snapshot all catalog components.
bool setComponentPerfStats(uint32 cid, AveragePerfStats &perfStruct)
Store new performance averages.
char * getComponentData(uint32 cid, uint64 &size)
Copy a component's whole data area (for migration).
std::string checkIntegrity()
Check the segment layout: every present component's record lies inside the used area,...
static bool UnitTest()
Self-test.
bool hasParameter(uint32 cid, const char *name)
std::map< std::string, std::string > getPrivateDataKeysAndTypes(uint32 cid)
bool setComponentPaused(uint32 cid, bool paused)
Set or clear COMPONENT_PAUSED (stop / start).
uint8 getComponentSelfTrigger(uint32 cid)
bool createComponent(uint32 id, uint8 type, uint8 policy, uint8 selfTrigger, const char *name, uint64 size, uint16 nodeID, uint16 procID, uint64 time, uint32 &existingID)
Register a component record.
bool isComponentLocal(uint32 cid)
bool addComponentStats(uint32 cid, uint8 status, uint64 usageCPUTicks, DataMessage *inputMsg, DataMessage *outputMsg, uint32 runCount, uint32 cycleCount)
Fold a run's activity into the component's stats (counters, rings, CPU ticks).
bool setComponentPolicy(uint32 cid, uint8 policy)
bool getParameter(uint32 cid, const char *name, char *val, uint32 maxSize)
bool resetParameter(uint32 cid, const char *name)
Restore the parameter's default value/index.
std::vector< ComponentInfoStruct > * getAllLocalComponents()
Snapshot components on this node.
uint8 getComponentType(uint32 cid)
ComponentStats getComponentStats(uint32 cid)
bool isComponentPaused(uint32 cid)
Set the migration policy.
bool setPrivateData(uint32 cid, const char *name, const char *data, uint64 size, const char *mimetype=NULL)
Create/replace blob name.
std::string toXML(bool stats=true)
int64 getParameterInt(uint32 cid, const char *name)
std::string getParameterString(uint32 cid, const char *name, uint32 maxSize)
bool createParameter(uint32 cid, const char *name, const char *val, const char *defaultValue=NULL)
bool writeComponentNamesToMsg(DataMessage *msg)
Write just the component names into msg.
bool setComponentSelfTrigger(uint32 cid, uint8 selfTrigger)
Set the self-trigger policy.
bool getMemoryUsage(uint64 &alloc, uint64 &usage)
Report allocation/usage of the component segment.
The central Psyclone data container: a self-contained binary message with typed, named user entries.
bool setTime(const char *key, uint64 value)
setTime(const char* key, uint64 value)
std::string toXML(std::map< uint16, std::string > *subtypes=NULL, std::map< uint16, std::string > *subcontexts=NULL, std::map< uint32, std::string > *compNames=NULL)
toXML()
bool setString(const char *key, const char *value)
setString(const char* key, const char* value)
bool setInt(const char *key, int64 value)
setInt(const char* key, int64 value)
const char * swapMessageData(const char *data)
swapMessageData(const char* data)
Handle to the node's master shared-memory segment (MemoryMasterStruct).
Recursive mutual-exclusion lock, optionally named for cross-process use.
Definition Utils.h:480
std::string StringFormat(const char *format,...)
printf into a std::string.
Definition Utils.cpp:9061
Sliding-window averages derived from successive PerfStats snapshots.
One component's registry record in shared memory.
uint16 nodeID
Node the component currently runs on.
uint8 policy
Migration policy (COMPONENT_CAN_MIGRATE flag).
uint64 size
Total record size in bytes including parameter and data areas.
uint8 type
Component type (Whiteboard, Catalog, Module, ...).
uint8 selfTrigger
SELFTRIGGER_* policy.
std::string toXML(bool printStats=true)
char name[MAXKEYNAMELEN]
Component name (unique per system).
uint64 createdTime
Creation timestamp (µs).
uint16 procID
Process (space) the component currently runs in.
bool writeToMsg(uint32 n, DataMessage *msg)
uint64 migratedTime
Timestamp of the last migration (µs), 0 if never migrated.
uint64 lastUpdateTime
Timestamp of the last record update (µs).
uint32 id
Component id (index into the segment's offset table).
uint8 status
COMPSTATUS_* run status.
uint8 syncStatus
Cluster sync status (0: not there, 1: in-sync, 2: ready).
Root header of the component-memory segment.
uint64 size
Total segment size in bytes.
uint32 count
Number of registered components.
uint32 maxID
Highest component id assigned so far.
uint64 usage
Bytes currently in use in the segment.
uint32 cid
Check/magic id validated on attach.
uint32 indexSize
Number of offset slots in the index.
Legacy per-component throughput counters (DataMessageHeader-based rings).
uint64 usageCPUTicks
Cumulative CPU ticks consumed.
uint32 migrationCount
Times this component has migrated.
uint64 msgInBytes
Total bytes received.
uint64 msgInCount
Total messages received.
uint64 cycleCount
Total processing cycles.
uint64 time
Timestamp of the last update (µs).
uint64 currentRunStartTime
Timestamp the current/last run started (µs).
uint64 runCount
Total runs.
uint64 msgOutBytes
Total bytes posted.
DataMessageHeader recentInMsg[10]
uint64 firstRunStartTime
Timestamp of the first run (µs).
std::string toXML()
Serialize counters and recent messages as a <componentstats> XML element.
DataMessageHeader recentOutMsg[10]
uint64 msgOutCount
Total messages posted.
The current (version 10) DataMessage wire/shared-memory header.
Value block of a PARAM_*_COLL parameter; followed by the packed collection values.
uint32 defaultIndex
Entry restored by resetParameter().
uint32 index
Currently selected entry.
uint32 count
Number of entries in the collection.
Value block of a PARAM_FLOAT parameter.
float64 interval
Step used by tweakParameter().
float64 minVal
Inclusive lower bound.
float64 maxVal
Inclusive upper bound.
float64 defaultVal
Value restored by resetParameter().
float64 val
Current value.
Size- and type-prefixed parameter entry stored after a component record.
uint32 size
Total entry size in bytes including this header.
uint8 type
PARAM_* data type.
std::string value
Current value as text.
std::vector< std::string > options
Collections: every entry as text, in order.
uint32 defaultIndex
Collections: the selected and the default entry.
uint8 type
PARAM_* data type.
std::string step
Integer/float: tweak step (interval), empty when 0.
std::string maxVal
Integer/float: inclusive range, both empty when unbounded (min == max).
std::string defaultValue
Value restored by resetParameter().
Value block of a PARAM_INTEGER parameter.
int64 defaultVal
Value restored by resetParameter().
int64 maxVal
Inclusive upper bound.
int64 interval
Step used by tweakParameter().
int64 minVal
Inclusive lower bound (0 = unbounded when max also 0).
Size-prefixed private-data entry stored after a component record.
uint64 size
Total entry size in bytes including this header.