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: CCallable
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: printing  (instance)
1.26.5 CFunctionDescriptor: restoring  (instance)


1.26.1 CFunctionDescriptor class: instance creation

for: funcName returning: returnTypeSymbol withArgs: argsArray
Answer a CFunctionDescriptor with the given function name, return type and arguments. funcName must be a String.


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

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

name: aString
Set the name of the function (on the C side) represented by the receiver


1.26.4 CFunctionDescriptor: printing

printOn: aStream
Print a representation of the receiver onto aStream


1.26.5 CFunctionDescriptor: restoring

link
Make the address of the function point to the registered address.



Back: CFunctionDescriptor-printing 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 February, 22 2012 using texi2html