Method IsPayloadHandleValid
IsPayloadHandleValid(PayloadHandle)
Checks if the specified handle currently references a valid memory block.
Declaration
public bool IsPayloadHandleValid(PayloadHandle blockHandle)
Parameters
| Type | Name | Description |
|---|---|---|
| PayloadHandle | blockHandle | A PayloadHandle value to check. |
Returns
| Type | Description |
|---|---|
| bool | True if the handle references a valid memory block and false if not. |
Remarks
Use this method to quickly check the validity of a handle value without the overhead of creating a NativeArray. A valid handle means it references an allocated memory block and that block hasn't yet been released.