Jsctypes/api: Difference between revisions

(→‎Conversions: Note that C/C++ values round-trip.)
Line 263: Line 263:


These getters and setters can shadow the properties and methods described above.
These getters and setters can shadow the properties and methods described above.
== Pointers ==
<code>CData</code> objects of pointer types also have this property:
:'''<code>''cptr''.''contents''</code>''' - Let ''C'' be a <code>CData</code> object referring to the pointed-to contents of ''cptr''. Return <code>ConvertToJS(''C'')</code>.
:'''<code>''cptr''.''contents'' = ''val''</code>''' - Let ''cval'' = <code>ImplicitConvert(''val'', the base type of the pointer)</code>. If conversion fails, throw a <code>TypeError</code>. Otherwise store ''cval'' in the pointed-to contents of ''cptr''.


== Arrays ==
== Arrays ==
148

edits