Open Orbuild opened 4 months ago
Yes, in general samples that you pass into the API need to be valid. That means:
_length
≤ _maximum
and _buffer
may not be a null pointer if _length
> 0_release
is false
except that if everything is 0 it will take over ownership in read/take and allocate and that it is somewhat forgiving of _maximum
< _length
@external
pointers may never be a null pointer on write.Maybe I forgot something, maybe not 😂 I'm sure you understand. That exception noted above about sequences exists so you can memset everything 0 and you'll be good for read and take.
There are few functions that only care about the values of the key fields, for example dds_dispose
. Those ignore all other fields, so in your example, you can call dds_dispose
with id
set correctly and everything else garbage.