Search Results for

    Show / Hide Table of Contents

    Struct FixedArray<T>

    A fixed length array wrapper

    Namespace: PTIRelianceLib
    Assembly: PTIRelianceLib.dll
    Syntax
    public struct FixedArray<T>
    Type Parameters
    Name Description
    T

    Data type to hold

    Constructors

    | Improve this Doc View Source

    FixedArray(Int32)

    Create a new fixed length array of this type

    Declaration
    public FixedArray(int size)
    Parameters
    Type Name Description
    System.Int32 size

    Properties

    | Improve this Doc View Source

    Content

    Raw raw contents of this array as a comma-separate string using ToString on the objects in this array.

    Declaration
    public string Content { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Count

    Returns the count of elements in the fixed array.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Size

    Returns the fixed length of this array. This is the max size.

    Declaration
    public int Size { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    GetData()

    Returns a readonly array containg all data

    Declaration
    public ImmutableArray<T> GetData()
    Returns
    Type Description
    ImmutableArray<T>
    | Improve this Doc View Source

    SetData(T[])

    Puts data into this fixed length array starting from the current tail of the fixed array. If the fixed array size limit has been reached, no more data will be added and this method will return.

    Declaration
    public void SetData(params T[] data)
    Parameters
    Type Name Description
    T[] data
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 Pyramid Technologies
    Generated by DocFX