SemPtr SemPtr
SemPtr SemPtr
Documentation generated with DocFX
Using SingulinkFX as the template

Search Results for

    Edit this page

    Method FromUIntPtr

    | Edit this page View Source

    FromUIntPtr(nuint)

    Creates a TSelf from a memory address given as an nint.

    Declaration
    public static TSelf FromUIntPtr(nuint value)
    Parameters
    Type Name Description
    nuint value

    The memory address to create a TSelf from.

    Returns
    Type Description
    TSelf

    A TSelf that points to the same memory address as the specified value.

    Remarks

    If TSelf represents a non-nullable pointer type, then the value pointer must not be 0. Otherwise, an ArgumentNullException will be thrown.

    Exceptions
    Type Condition
    ArgumentNullException

    value is 0 and TSelf represents a non-nullable pointer type

    © 2026 Felix Rüdiger. SemPtr and its documentation are licensed under the MIT license.