Method ReadValueSafeTemp
ReadValueSafeTemp<T>(out NativeArray<T>, ForGeneric)
Read a struct NativeArray using a Temp allocator. Equivalent to ReadValueSafe(out value, Allocator.Temp)
"Safe" version - automatically performs bounds checking. Less efficient than bounds checking for multiple reads at once by calling TryBeginRead.
Declaration
public void ReadValueSafeTemp<T>(out NativeArray<T> value, FastBufferWriter.ForGeneric unused = default) where T : unmanaged
Parameters
| Type | Name | Description |
|---|---|---|
| NativeArray<T> | value | The values to read |
| FastBufferWriter.ForGeneric | unused | An unused parameter used for enabling overload resolution based on generic constraints |
Type Parameters
| Name | Description |
|---|---|
| T | The type being serialized |
ReadValueSafeTemp<T>(out NativeArray<T>)
Read a FixedString NativeArray using a Temp allocator. Equivalent to ReadValueSafe(out value, Allocator.Temp)
"Safe" version - automatically performs bounds checking. Less efficient than bounds checking for multiple reads at once by calling TryBeginRead.
Declaration
public void ReadValueSafeTemp<T>(out NativeArray<T> value) where T : unmanaged, INativeList<byte>, IUTF8Bytes
Parameters
| Type | Name | Description |
|---|---|---|
| NativeArray<T> | value | the value to read |
Type Parameters
| Name | Description |
|---|---|
| T | The type being serialized |