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

Search Results for

    Method FromRaw

    FromRaw(void*)

    Creates a PersistentPointerUninitialized from a raw pointer.

    Declaration
    public static PersistentPointerUninitialized FromRaw(void* raw)
    Parameters
    Type Name Description
    void* raw

    The raw pointer specifying the target that the resulting PersistentPointerUninitialized will point to.

    Returns
    Type Description
    PersistentPointerUninitialized

    A PersistentPointerUninitialized that points to the same target as the specified raw pointer.

    Implements
    IPointer<TSelf>.FromRaw(void*)
    Remarks

    The raw pointer must not be null. If it is, an ArgumentNullException will be thrown.

    The resulting PersistentPointerUninitialized will point to the same target as raw.

    Exceptions
    Type Condition
    ArgumentNullException

    raw is null

    FromRaw<T>(T*)

    Creates a PersistentPointerUninitialized<T> from a raw pointer.

    Declaration
    public static PersistentPointerUninitialized<T> FromRaw<T>(T* raw) where T : unmanaged
    Parameters
    Type Name Description
    T* raw

    The raw pointer specifying the target that the resulting PersistentPointerUninitialized<T> will point to.

    Returns
    Type Description
    PersistentPointerUninitialized<T>

    A PersistentPointerUninitialized<T> that points to the same target as the specified raw pointer.

    Type Parameters
    Name Description
    T

    The type of the target that the resulting PersistentPointerUninitialized<T> will point to.

    Remarks

    The raw pointer must not be null. If it is, an ArgumentNullException will be thrown.

    The resulting PersistentPointerUninitialized<T> will point to the same target as raw.

    Exceptions
    Type Condition
    ArgumentNullException

    raw is null

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