Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    ArrayPool<T> Class

    Namespace: Stride.Particles.Sorters
    Assembly: Stride.Particles.dll
    System.Object → ArrayPool<T>
    Derived from ArrayPool<T>: ConcurrentArrayPool<T>

    public class ArrayPool<T>
        where T : struct
    Type Parameters
    Name Description
    T
    Name Description
    Fields
    Empty
    Methods
    Allocate(Int32)
    Clear()
    Free(T[])
    | Improve this Doc View Source

    Fields


    Empty

    public readonly T[] Empty
    Field Value
    Type Description
    T[]
    | Improve this Doc View Source

    Methods


    Allocate(Int32)

    public virtual T[] Allocate(int size)
    Parameters
    Type Name Description
    System.Int32 size
    Returns
    Type Description
    T[]

    Clear()

    public virtual void Clear()

    Free(T[])

    public virtual void Free(T[] array)
    Parameters
    Type Name Description
    T[] array

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation