d2i_of_void typedef

The following typedefs are sometimes used for pointers to functions like d2i_SAMPLE and i2d_SAMPLE. Note, however, that these act on void*. Calling a function with a different pointer type is undefined in C, so this is only valid with a wrapper.

Implementation

typedef d2i_of_void =
    ffi.NativeFunction<
      ffi.Pointer<ffi.Void> Function(
        ffi.Pointer<ffi.Pointer<ffi.Void>>,
        ffi.Pointer<ffi.Pointer<ffi.UnsignedChar>>,
        ffi.Long,
      )
    >;