class · System.Bindings

CType

public class System.Bindings.CType : System.Any

A C type as the binding writes it (i32, u8*, SDL_Rect*, func*<void*> : i32), and the typedef C wrote it with.

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

Inheritance

Base classes
Any CType

Constructors

constructor CType(text: System.String<u8>, typedef: System.String<u8>)
#

Methods

method IsPointer() -> bool
#

Whether it is a pointer (T*).

method IsNumber() -> bool
#

Whether it is a number type (i8 … u64, f32, f64), without pointers.

Fields

field Text: System.String<u8>
#

The type in the binding (names of structs and enums are their C names until the end: the runner renames them).

field Typedef: System.String<u8>
#

The C typedef it was written with (SDL_InitFlags), or "".

Inherited members (5)

Source

CType as Larva HIR, decompiled from its Larva HIR.

System.Bindings.CType.hir
// A C type as the binding writes it (`i32`, `u8*`, `SDL_Rect*`, `func*<void*> : i32`), and the typedef C wrote it with.
public class System.Bindings.CType : System.Any
{
    // The type in the binding (names of structs and enums are their C names until the end: the runner renames them).
    field Text: System.String<u8>
    // The C typedef it was written with (`SDL_InitFlags`), or "".
    field Typedef: System.String<u8>
    constructor CType(text: System.String<u8>, typedef: System.String<u8>)
    // Whether it is a pointer (`T*`).
    method IsPointer() -> bool
    // Whether it is a number type (`i8` … `u64`, `f32`, `f64`), without pointers.
    method IsNumber() -> bool
}
Esc