Struct NativeStream.Reader
Syntax
Properties
ForEachCount
Declaration
public int ForEachCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
RemainingItemCount
Declaration
public int RemainingItemCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
BeginForEachIndex(Int32)
Begin reading data at the iteration index
Declaration
public int BeginForEachIndex(int foreachIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
foreachIndex |
|
Returns
Type |
Description |
System.Int32 |
The number of elements at this index
|
ComputeItemCount()
Declaration
public int ComputeItemCount()
Returns
Type |
Description |
System.Int32 |
|
EndForEachIndex()
EndForEachIndex() ensures that all data has been read for the active ForEach index.
Declaration
[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]
public void EndForEachIndex()
Peek<T>()
Declaration
public T Peek<T>()
where T : struct
Returns
Type Parameters
Read<T>()
Declaration
public T Read<T>()
where T : struct
Returns
Type Parameters
ReadUnsafePtr(Int32)
Declaration
public byte *ReadUnsafePtr(int size)
Parameters
Type |
Name |
Description |
System.Int32 |
size |
|
Returns
Type |
Description |
System.Byte* |
|
Extension Methods