AddSat(int, int)
Atomically adds a value to this counter. The result will not be greater than a maximum value.
Read time 1 minuteLast updated 22 days ago
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
public int AddSat(int value, int max = 2147483647)
Parameters
Returns
Type | Description |
|---|---|
| int | The original value before the add. |