infix
A JIT-Powered FFI Library for C
Loading...
Searching...
No Matches
infix_direct_value_t Union Reference

A union to hold any primitive value returned by a scalar marshaller. More...

#include <infix.h>

Public Attributes

uint64_t u64
 Used for all unsigned integer types up to 64 bits.
 
int64_t i64
 Used for all signed integer types up to 64 bits.
 
double f64
 Used for float and double.
 
void * ptr
 Used for all pointer types.
 

Detailed Description

A union to hold any primitive value returned by a scalar marshaller.

Since a C function can only have one return type, a marshaller for primitive types (infix_marshaller_fn) returns this union. The JIT-compiled code will know which member of the union to access based on the argument's C type.


The documentation for this union was generated from the following file: