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