Method IndexOf
IndexOf<T>(void*, int, T)
Index of an element in a buffer.
Declaration
public static int IndexOf<T>(void* data, int count, T v) where T : struct, IEquatable<T>
Parameters
| Type | Name | Description | 
|---|---|---|
| void* | data | Data buffer.  | 
    
| int | count | Number of elements.  | 
    
| T | v | Element to test against.  | 
    
Returns
| Type | Description | 
|---|---|
| int | The first index of the provided element.  | 
    
Type Parameters
| Name | Description | 
|---|---|
| T | Data type.  |