Re: GlueGen Struct Generator Update *API Change* .. etc
Posted by Sven Gothel on Jun 16, 2023; 4:33pm
URL: https://forum.jogamp.org/GlueGen-Struct-Generator-Update-API-Change-etc-tp4042685p4042694.html
OK, the setter will be revised:
A) int32_t val[10] -> setter for a subset change only, as-is with args[src, srcPos, destPos, length]
- no new memory
- no special action to be performed
B) int32_t* val -> setter with toggle 'subset' with args[subset, src, srcPos, destPos, length],
- may replace memory where it also may copy 'destPos' gap from old -> new
C) const int32_t* val -> setter to replace referenced memory only args[src, srcPos, length]
- always replaces memory, no copy of a gap (no destPos)
Hence:
- case (A) stays as is
- case (B) will be revised and argument 'boolean subset' added
- case (C) will be revised (simplified) and argument 'destPos' removed
Acceptable?
Will do a code of this, also adding a generated API doc header for the setter and getter.