Struct CoreUnsafeUtils.FixedBufferStringQueue
Fixed Buffer String Queue class.
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public struct CoreUnsafeUtils.FixedBufferStringQueue
Constructors
FixedBufferStringQueue(byte*, int)
Constructor.
Declaration
public FixedBufferStringQueue(byte* ptr, int length)
Parameters
Type | Name | Description |
---|---|---|
byte* | ptr | Buffer pointer. |
int | length | Length of the provided allocated buffer in byte. |
Properties
Count
Number of element in the queue.
Declaration
public readonly int Count { get; }
Property Value
Type | Description |
---|---|
int |
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 |
---|---|
bool | 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 |
---|---|
bool | True if the new element could be pushed in the queue. False if reserved memory was not enough. |