Version: 2022.1
LanguageEnglish
  • C#
Experimental: this API is experimental and might be changed or removed in the future.

ArrayEntries<T0>.GetEntries

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public void GetEntries(uint indexStart, uint numEntries, ref T[] dataOut);

Parameters

indexStart Index to start indexing the entries.
numEntries Number of elements to retrieve.
dataOut An array to store the returned data in.

Description

Retrieves a subset of entries in an array.

GetEntries retrieves the number of entries specified by the numEntries parameter, starting at index as specified by the indexStart Parameter. The entries are written to the array specified by the dataOut parameter.

The method throws an IOException if you try to retrieve entries past the end of the of array (entryIndex plus numEntries is greater than the number of entries in the array) or the number of entries to retrieve is greater than the size of the dataOut array.