Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

NativeBitArray.ReadOnly.Find

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 int Find(int pos, int numBits);

Parameters

Parameter Description
pos Index at which to start searching.
numBits Number of contiguous 0 bits to look for.

Returns

int The index in this array where the sequence is found. The index will be greater than or equal to pos. Returns -1 if no occurrence is found.

Description

Finds the first length-"N" contiguous sequence of 0 bits in this bit array.


Declaration

public int Find(int pos, int count, int numBits);

Parameters

Parameter Description
pos Index at which to start searching.
numBits Number of contiguous 0 bits to look for.
count Number of bits to search.

Returns

int The index in this array where the sequence is found. The index will be greater than or equal to pos but less than pos + count. Returns -1 if no occurrence is found.

Description

Finds the first length-"N" contiguous sequence of 0 bits in this bit array. Searches only a subsection.