Method BeginForEachIndex
BeginForEachIndex(int)
Readies this reader to read a particular buffer of the stream.
Declaration
public int BeginForEachIndex(int foreachIndex)
Parameters
Type | Name | Description |
---|---|---|
int | foreachIndex | The index of the buffer to read. |
Returns
Type | Description |
---|---|
int | The number of remaining elements to read from the buffer. |
Remarks
Must be called before using this reader. For an individual reader, call this method only once.
When done using this reader, you must call <xref href="Unity.Collections.LowLevel.Unsafe.UnsafeStream.Reader.EndForEachIndex" data-throw-if-not-resolved="false"></xref>.