CreateForeignCallback
CreateForeignCallback[f,type]
creates a foreign callback with the specified type that can be called from external libraries.
Details
- CreateForeignCallback returns a managed ForeignCallback object.
- Possible argument and return types and their corresponding C types include:
-
"UnsignedInteger8" uint8_t unsigned 8-bit integer "Integer8" int8_t signed 8-bit integer "UnsignedInteger16" uint16_t unsigned 16-bit integer "Integer16" int16_t signed 16-bit integer "UnsignedInteger32" uint32_t unsigned 32-bit integer "Integer32" int32_t signed 32-bit integer "UnsignedInteger64" uint64_t unsigned 64-bit integer "Integer64" int64_t signed 64-bit integer "CUnsignedChar" unsigned char C-compatible unsigned char "CSignedChar" signed char C-compatible signed char "CUnsignedShort" unsigned short C-compatible unsigned short "CShort" short C-compatible short "CUnsignedInt" unsigned int C-compatible unsigned int "CInt" int C-compatible int "CUnsignedLong" unsigned long C-compatible unsigned long "CLong" long C-compatible long "CSizeT" size_t C-compatible size_t "CFloat" float C-compatible float "CDouble" double C-compatible double "OpaqueRawPointer" void* opaque pointer "RawPointer"::[t] t* typed pointer {ty1,ty2,…} struct {ty1 f1; ty2 f2; …} struct or product type "Void" void no output (only in output types)
Examples
Wolfram Research (2023), CreateForeignCallback, Wolfram Language function, https://reference.wolfram.com/language/ref/CreateForeignCallback.html.
Text
Wolfram Research (2023), CreateForeignCallback, Wolfram Language function, https://reference.wolfram.com/language/ref/CreateForeignCallback.html.
CMS
Wolfram Language. 2023. "CreateForeignCallback." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CreateForeignCallback.html.
APA
Wolfram Language. (2023). CreateForeignCallback. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CreateForeignCallback.html