Struct UnsafePtrList.ParallelWriter
Namespace: Unity.Collections.LowLevel.Unsafe
Syntax
public struct ParallelWriter
Constructors
ParallelWriter(Void*, UnsafeList*)
Declaration
public ParallelWriter(void *ptr, UnsafeList*listData)
Parameters
Type | Name | Description |
---|---|---|
Void* | ptr | |
UnsafeList* | listData |
Fields
ListData
Declaration
public UnsafeList*ListData
Field Value
Type | Description |
---|---|
UnsafeList* |
Ptr
Declaration
public readonly void *Ptr
Field Value
Type | Description |
---|---|
Void* |
Methods
AddNoResize(Void*)
Adds an element to the list.
Declaration
public void AddNoResize(void *value)
Parameters
Type | Name | Description |
---|---|---|
Void* | value | The value to be added at the end of the list. |
Remarks
If the list has reached its current capacity, internal array won't be resized, and exception will be thrown.
AddRangeNoResize(Void**, Int32)
Adds elements from a buffer to this list.
Declaration
public void AddRangeNoResize(void **ptr, int length)
Parameters
Type | Name | Description |
---|---|---|
Void** | ptr | A pointer to the buffer. |
Int32 | length | The number of elements to add to the list. |
Remarks
If the list has reached its current capacity, internal array won't be resized, and exception will be thrown.
AddRangeNoResize(UnsafePtrList)
Adds elements from a list to this list.
Declaration
public void AddRangeNoResize(UnsafePtrList list)
Parameters
Type | Name | Description |
---|---|---|
UnsafePtrList | list |
Remarks
If the list has reached its current capacity, internal array won't be resized, and exception will be thrown.