class · System.Bindings

CFunction

public class System.Bindings.CFunction : System.Any

A C function the library exports: an [Import] of the binding.

Kind
class
Namespace
System.Bindings
Assembly
System.Bindings
Access
public, final
Source file
Model.ant

Inheritance

Base classes
Any CFunction

Constructors

constructor CFunction(entry: System.String<u8>, header: System.String<u8>, result: System.Bindings.CType)
#

Methods

method Add(cName: System.String<u8>, type: System.String<u8>, typedef: System.String<u8>) -> System.Bindings.CFunction
#

Adds a parameter (the model is built this way).

method Parameter(cName: System.String<u8>) -> System.Bindings.CParameter?
#

The parameter named cName in C.

Fields

field Entry: System.String<u8>
#

The C symbol (what the library exports; never changed).

field Name: System.String<u8>
#

Its name in the binding.

field Namespace: System.String<u8>
#

Where it goes: "" is the settings' (or the header's, with NamespaceByHeader / ClassByHeader).

field Class: System.String<u8>
#
field File: System.String<u8>
#
field Result: System.Bindings.CType
#

Inherited members (5)

Source

CFunction as Larva HIR, decompiled from its Larva HIR.

System.Bindings.CFunction.hir
// A C function the library exports: an `[Import]` of the binding.
public class System.Bindings.CFunction : System.Any
{
    // The C symbol (what the library exports; never changed).
    field Entry: System.String<u8>
    // Its name in the binding.
    field Name: System.String<u8>
    // The header that declares it ("" when not known).
    field Header: System.String<u8>
    // Where it goes: "" is the settings' (or the header's, with NamespaceByHeader / ClassByHeader).
    field Namespace: System.String<u8>
    field Class: System.String<u8>
    field File: System.String<u8>
    field Parameters: System.List<System.Bindings.CParameter>
    field Result: System.Bindings.CType
    constructor CFunction(entry: System.String<u8>, header: System.String<u8>, result: System.Bindings.CType)
    // Adds a parameter (the model is built this way).
    method Add(cName: System.String<u8>, type: System.String<u8>, typedef: System.String<u8>) -> System.Bindings.CFunction
    // The parameter named `cName` in C.
    method Parameter(cName: System.String<u8>) -> System.Bindings.CParameter?
}
Esc