Sha256: d25e97f5f0aecf6c9f04ae5bd0ae671b6ff491954f70fba05140dd050e67d889
Contents?: true
Size: 821 Bytes
Versions: 2
Compression:
Stored size: 821 Bytes
Contents
/* * File: Types.h * Author: wayne * * Created on September 9, 2008, 9:47 PM */ #ifndef _TYPES_H #define _TYPES_H #ifdef __cplusplus extern "C" { #endif typedef enum { VOID, INT8, UINT8, INT16, UINT16, INT32, UINT32, INT64, UINT64, FLOAT32, FLOAT64, POINTER, CALLBACK, BUFFER_IN, BUFFER_OUT, BUFFER_INOUT, CHAR_ARRAY, /** * An immutable string. Nul terminated, but only copies in to the native function */ STRING, /** A Rubinus :string arg - copies data both ways, and nul terminates */ RBXSTRING } NativeType; #include <ffi.h> extern ffi_type* rb_FFI_NativeTypeToFFI(NativeType type); VALUE rb_FFI_NativeValueToRuby(NativeType type, const void* ptr); #ifdef __cplusplus } #endif #endif /* _TYPES_H */
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ffi-0.1.1 | ext/Types.h |
ffi-0.1.0 | ext/Types.h |