Method | Description | |
---|---|---|
Compare ( byte array, byte needle, int startIndex ) : bool |
Check if the array contains needle at specified position.
|
|
Find ( byte array, byte needle, int startIndex, int sourceLength ) : int |
Find subarray in the source array.
|
public static Compare ( byte array, byte needle, int startIndex ) : bool | ||
array | byte | Source array to check for needle. |
needle | byte | Needle we are searching for. |
startIndex | int | Start index in source array. |
return | bool |
public static Find ( byte array, byte needle, int startIndex, int sourceLength ) : int | ||
array | byte | Source array to search for needle. |
needle | byte | Needle we are searching for. |
startIndex | int | Start index in source array. |
sourceLength | int | Number of bytes in source array, where the needle is searched for. |
return | int |