docs.unity3d.com
    目次を表示する/隠す

    Struct CoreUnsafeUtils.FixedBufferStringQueue

    Fixed Buffer String Queue class.

    Namespace: UnityEngine.Rendering
    Syntax
    public struct FixedBufferStringQueue

    Constructors

    FixedBufferStringQueue(Byte*, Int32)

    Constructor.

    Declaration
    public FixedBufferStringQueue(byte *ptr, int length)
    Parameters
    Type Name Description
    Byte* ptr

    Buffer pointer.

    Int32 length

    Length of the provided allocated buffer in byte.

    Properties

    Count

    Number of element in the queue.

    Declaration
    public int Count { readonly get; }
    Property Value
    Type Description
    Int32

    Methods

    Clear()

    Clear the queue.

    Declaration
    public void Clear()

    TryPop(out String)

    Pop an element of the queue.

    Declaration
    public bool TryPop(out string v)
    Parameters
    Type Name Description
    String v

    Output result string.

    Returns
    Type Description
    Boolean

    True if an element was succesfuly poped.

    TryPush(String)

    Try to push a new element in the queue.

    Declaration
    public bool TryPush(string v)
    Parameters
    Type Name Description
    String v

    Element to push in the queue.

    Returns
    Type Description
    Boolean

    True if the new element could be pushed in the queue. False if reserved memory was not enough.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)