Back: CFloat-accessing Up: Base classes Forward: CFunctionDescriptor class-instance creation   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.26 CFunctionDescriptor

Defined in namespace Smalltalk
Superclass: Object
Category: Language-C interface
I am not part of the Smalltalk definition. My instances contain information about C functions that can be called from within Smalltalk, such as number and type of parameters. This information is used by the C callout mechanism to perform the actual call-out to C routines.

1.26.1 CFunctionDescriptor class: instance creation  (class)
1.26.2 CFunctionDescriptor class: testing  (class)
1.26.3 CFunctionDescriptor: accessing  (instance)
1.26.4 CFunctionDescriptor: calling  (instance)
1.26.5 CFunctionDescriptor: printing  (instance)


1.26.1 CFunctionDescriptor class: instance creation

for: funcNameString returning: returnTypeSymbol withArgs: argsArray
Private - Answer a CFunctionDescriptor


1.26.2 CFunctionDescriptor class: testing

addressOf: function
Answer whether a function is registered (on the C side) with the given name or is dynamically loadable.

isFunction: function
Answer whether a function is registered (on the C side) with the given name.


1.26.3 CFunctionDescriptor: accessing

address
Answer the address (CObject) of the function represented by the receiver

address: aCObject
Set to aCObject the address of the function represented by the receiver

isValid
Answer whether the function represented by the receiver is actually a registered one

name
Answer the name of the function (on the C side) represented by the receiver


1.26.4 CFunctionDescriptor: calling

asyncCall
Perform the call-out for the function represented by the receiver. The arguments (and the receiver if one of the arguments has type #self or #selfSmalltalk) are taken from the parent context. Asynchronous call-outs don't return a value, but if the function calls back into Smalltalk the process that started the call-out is not suspended.

asyncCallNoRetryFrom: aContext
Perform the call-out for the function represented by the receiver. The arguments (and the receiver if one of the arguments has type #self or #selfSmalltalk) are taken from the base of the stack of aContext. Asynchronous call-outs don't return a value, but if the function calls back into Smalltalk the process that started the call-out is not suspended. Unlike #asyncCallFrom:, this method does not attempt to find functions in shared objects.

callInto: aValueHolder
Perform the call-out for the function represented by the receiver. The arguments (and the receiver if one of the arguments has type #self or #selfSmalltalk) are taken from the parent context, and the the result is stored into aValueHolder. aValueHolder is also returned.

callNoRetryFrom: aContext into: aValueHolder
Perform the call-out for the function represented by the receiver. The arguments (and the receiver if one of the arguments has type #self or #selfSmalltalk) are taken from the base of the stack of aContext, and the result is stored into aValueHolder. aValueHolder is also returned. Unlike #callFrom:into:, this method does not attempt to find functions in shared objects.


1.26.5 CFunctionDescriptor: printing

printOn: aStream
Print a representation of the receiver onto aStream



Back: CFunctionDescriptor-calling Up: CFunctionDescriptor Forward: Character   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on May, 22 2008 using texi2html