Skip to content

AnyFuncPtrType

IsaacShelton edited this page Mar 21, 2022 · 1 revision

AnyFuncPtrType

AnyFuncPtrType represents the type for runtime type information of function pointer types.

Specifications

Type Size Memory Management Model File
AnyFuncPtrType 72 bytes None N/A

Definition

struct AnyFuncPtrType (
    struct AnyType,
    
    args **AnyType,
    length usize,
    return_type *AnyType,
    is_vararg bool,
    is_stdcall bool
)

where AnyType is defined as

struct AnyType (kind AnyTypeKind, name *ubyte, is_alias bool, size usize)

Fields

Name Overlaps AnyType Type Description
kind y AnyTypeKind What kind of type (AnyTypeKind::FUNC_PTR)
name y *ubyte Human readable name of the type
is_alias y bool Whether the type is an alias
size y usize Size of the type in bytes
args **AnyType Argument types
length usize Number of arguments
return_type *AnyType Return type
is_vararg bool Whether function type has C-style variadic arguments
is_stdcall bool Whether function type uses stdcall calling convention

Overlap

All *AnyFuncPtrType values are also valid *AnyType values

Clone this wiki locally