rbc.externals.macros#

Description

This module provides the following tools:

Intrinsics:

sizeof(<numba.types.TypeRef|Type instance>) cast(<numba.types.voidptr instance>, <numba.types.TypeRef|StringLiteral instance>)

Methods:

<numba.types.voidptr instance>.cast(<numba.types.TypeRef|StringLiteral instance>)

Casts:

intp, voidptr to/from T*, T**, …, T************* where T is a scalar type.

Functions

cast(typingctx, ptr, typ)

Cast pointer value to any pointer type.

impl_T_star_to_T_star(context, builder, ...)

impl_T_star_to_intp(context, builder, ...)

impl_intp_to_T_star(context, builder, ...)

sizeof(typingctx, arg_type)

Return sizeof type.

voidptr_cast_to_any(ptr, typ)

Convenience method for casting voidptr to any pointer type.