"CUnsignedShort" (Compiled Type)
"CUnsignedShort" (Compiled Type)
"CUnsignedShort"
represents the C unsigned short type.
Details
- "CUnsignedShort" is a macro that is replaced with a platform-specific concrete type. On most platforms, "CUnsignedShort" is a macro for "UnsignedInteger16".
Examples
Basic Examples (2)
Compile a function that takes a "CUnsignedShort" as input:
cf = FunctionCompile[Function[Typed[arg, "CUnsignedShort"], arg]]cf[100]Create a constant with type "CUnsignedShort":
cf = FunctionCompile[Function[{}, Typed[12, "CUnsignedShort"]]]cf[]See Also
Compiled Types: UnsignedInteger16 CShort CInt
Tech Notes
Related Guides
History
Introduced in 2022 (13.1)