pub unsafe trait CElement: CData { }
Expand description
A CData representing a single value rater than an entire buffer of a range of values.
Safety
Considerations for implementers
Callers must be able to rely on all pointers being valid, i.e. the “range” is not empty.
Since the indicator provided by implementation is used to indicate the length of the value in the buffer, care must be taken to prevent out of bounds access in case the implementation also is used as an output parameter, and contains truncated values (i.e. the indicator is longer than the buffer and the value within).