Fantasy
搜索结果

    显示/隐藏目录

    NativeStack<T> 结构

    Native stack

    实现
    IDisposable
    IEquatable<NativeStack<T>>
    继承成员
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    命名空间: NativeCollections
    程序集: Fantasy.Net.dll
    语法
    [StructLayout(LayoutKind.Sequential)]
    public readonly struct NativeStack<T> : IDisposable, IEquatable<NativeStack<T>> where T : unmanaged
    类型参数
    名称 描述
    T

    Type

    构造函数

    | 编辑本文 查看源代码

    NativeStack(int)

    Structure

    声明
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public NativeStack(int capacity)
    参数
    类型 名称 描述
    int capacity

    Capacity

    属性

    | 编辑本文 查看源代码

    Count

    Count

    声明
    public int Count { get; }
    属性值
    类型 描述
    int
    | 编辑本文 查看源代码

    Empty

    Empty

    声明
    public static NativeStack<T> Empty { get; }
    属性值
    类型 描述
    NativeStack<T>
    | 编辑本文 查看源代码

    IsCreated

    Is created

    声明
    public bool IsCreated { get; }
    属性值
    类型 描述
    bool
    | 编辑本文 查看源代码

    IsEmpty

    Is empty

    声明
    public bool IsEmpty { get; }
    属性值
    类型 描述
    bool
    | 编辑本文 查看源代码

    this[int]

    Get reference

    声明
    public ref T this[int index] { get; }
    参数
    类型 名称 描述
    int index

    Index

    属性值
    类型 描述
    T
    | 编辑本文 查看源代码

    this[uint]

    Get reference

    声明
    public ref T this[uint index] { get; }
    参数
    类型 名称 描述
    uint index

    Index

    属性值
    类型 描述
    T

    方法

    | 编辑本文 查看源代码

    Clear()

    Clear

    声明
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public void Clear()
    | 编辑本文 查看源代码

    Dispose()

    Dispose

    声明
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public void Dispose()
    | 编辑本文 查看源代码

    EnsureCapacity(int)

    Ensure capacity

    声明
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public int EnsureCapacity(int capacity)
    参数
    类型 名称 描述
    int capacity

    Capacity

    返回
    类型 描述
    int

    New capacity

    | 编辑本文 查看源代码

    Equals(NativeStack<T>)

    Equals

    声明
    public bool Equals(NativeStack<T> other)
    参数
    类型 名称 描述
    NativeStack<T> other

    Other

    返回
    类型 描述
    bool

    Equals

    | 编辑本文 查看源代码

    Equals(object?)

    Equals

    声明
    public override bool Equals(object? obj)
    参数
    类型 名称 描述
    object obj

    object

    返回
    类型 描述
    bool

    Equals

    重写
    ValueType.Equals(object)
    | 编辑本文 查看源代码

    GetEnumerator()

    Get enumerator

    声明
    public NativeStack<T>.Enumerator GetEnumerator()
    返回
    类型 描述
    NativeStack<T>.Enumerator

    Enumerator

    | 编辑本文 查看源代码

    GetHashCode()

    Get hashCode

    声明
    public override int GetHashCode()
    返回
    类型 描述
    int

    HashCode

    重写
    ValueType.GetHashCode()
    | 编辑本文 查看源代码

    Peek()

    Peek

    声明
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public T Peek()
    返回
    类型 描述
    T

    Item

    | 编辑本文 查看源代码

    Pop()

    Pop

    声明
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public T Pop()
    返回
    类型 描述
    T

    Item

    | 编辑本文 查看源代码

    Push(in T)

    Push

    声明
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public void Push(in T item)
    参数
    类型 名称 描述
    T item

    Item

    | 编辑本文 查看源代码

    ToString()

    To string

    声明
    public override string ToString()
    返回
    类型 描述
    string

    String

    重写
    ValueType.ToString()
    | 编辑本文 查看源代码

    TrimExcess()

    Trim excess

    声明
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public int TrimExcess()
    返回
    类型 描述
    int

    New capacity

    | 编辑本文 查看源代码

    TryPeek(out T)

    Try peek

    声明
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public bool TryPeek(out T result)
    参数
    类型 名称 描述
    T result

    Item

    返回
    类型 描述
    bool

    Peeked

    | 编辑本文 查看源代码

    TryPop(out T)

    Try pop

    声明
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public bool TryPop(out T result)
    参数
    类型 名称 描述
    T result

    Item

    返回
    类型 描述
    bool

    Popped

    | 编辑本文 查看源代码

    TryPush(in T)

    Try push

    声明
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public bool TryPush(in T item)
    参数
    类型 名称 描述
    T item

    Item

    返回
    类型 描述
    bool

    Pushed

    运算符

    | 编辑本文 查看源代码

    operator ==(NativeStack<T>, NativeStack<T>)

    Equals

    声明
    public static bool operator ==(NativeStack<T> left, NativeStack<T> right)
    参数
    类型 名称 描述
    NativeStack<T> left

    Left

    NativeStack<T> right

    Right

    返回
    类型 描述
    bool

    Equals

    | 编辑本文 查看源代码

    operator !=(NativeStack<T>, NativeStack<T>)

    Not equals

    声明
    public static bool operator !=(NativeStack<T> left, NativeStack<T> right)
    参数
    类型 名称 描述
    NativeStack<T> left

    Left

    NativeStack<T> right

    Right

    返回
    类型 描述
    bool

    Not equals

    实现

    IDisposable
    IEquatable<T>

    扩展方法

    JsonHelper.ToJson<T>(T)
    • 编辑本文
    • 查看源代码
    本文内容
    Back to top Generated by DocFX