Fantasy
搜索结果

    显示/隐藏目录

    NativeMemoryAllocator 类

    Native memory allocator

    继承
    object
    NativeMemoryAllocator
    继承成员
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    命名空间: NativeCollections
    程序集: Fantasy.Net.dll
    语法
    public static class NativeMemoryAllocator

    方法

    | 编辑本文 查看源代码

    Alloc(int)

    Alloc

    声明
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public static void* Alloc(int byteCount)
    参数
    类型 名称 描述
    int byteCount

    Byte count

    返回
    类型 描述
    void*

    Memory

    | 编辑本文 查看源代码

    AllocZeroed(int)

    Alloc zeroed

    声明
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public static void* AllocZeroed(int byteCount)
    参数
    类型 名称 描述
    int byteCount

    Byte count

    返回
    类型 描述
    void*

    Memory

    | 编辑本文 查看源代码

    AllocZeroed<T>()

    Alloc zeroed

    声明
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public static T* AllocZeroed<T>() where T : unmanaged
    返回
    类型 描述
    T*

    Memory

    类型参数
    名称 描述
    T
    | 编辑本文 查看源代码

    AllocZeroed<T>(int)

    Alloc zeroed

    声明
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public static T* AllocZeroed<T>(int count) where T : unmanaged
    参数
    类型 名称 描述
    int count

    Count

    返回
    类型 描述
    T*

    Memory

    类型参数
    名称 描述
    T
    | 编辑本文 查看源代码

    Alloc<T>()

    Alloc

    声明
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public static T* Alloc<T>() where T : unmanaged
    返回
    类型 描述
    T*

    Memory

    类型参数
    名称 描述
    T
    | 编辑本文 查看源代码

    Alloc<T>(int)

    Alloc

    声明
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public static T* Alloc<T>(int count) where T : unmanaged
    参数
    类型 名称 描述
    int count

    Count

    返回
    类型 描述
    T*

    Memory

    类型参数
    名称 描述
    T
    | 编辑本文 查看源代码

    Free(nint)

    Free

    声明
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public static void Free(nint ptr)
    参数
    类型 名称 描述
    nint ptr

    Pointer

    | 编辑本文 查看源代码

    Free(void*)

    Free

    声明
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public static void Free(void* ptr)
    参数
    类型 名称 描述
    void* ptr

    Pointer

    • 编辑本文
    • 查看源代码
    本文内容
    Back to top Generated by DocFX