Struct CoreUnsafeUtils.FixedBufferStringQueue | Core RP Library | 7.2.1
docs.unity3d.com
    Show / Hide Table of Contents

    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 { 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.

    In This Article
    • Constructors
      • FixedBufferStringQueue(Byte*, Int32)
    • Properties
      • Count
    • Methods
      • Clear()
      • TryPop(out String)
      • TryPush(String)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023