To use an EsEntryPoint, create it and send it the message address. The result is an integer that can be passed out to a
PlatformFunction that requires a function pointer as a parameter. When the external language calls the function pointer, VA Smalltalk converts the parameters into Smalltalk objects and sends the message designated by the receiver and selector of the
EsEntryPoint. The receiver parameter can be any Smalltalk object. The selector parameter must be a
Symbol.
parameterTypes is an array of type names and
returnType is a single type name. The
callingConvention parameter must be a string that is one of the valid VA Smalltalk calling conventions. For details about platform-specific calling conventions, see
Platform requirements.
There are two kinds of EsEntryPoints, depending on the value of
arrayBased parameter when an
EsEntryPoint is created. If
arrayBased is
false, the selector must take the same number of parameters as the number of parameters in the
parameterTypes array; that is, one per external language parameter. If
arrayBased is
true, the selector must take one parameter, which is an array of all the parameters.