C# Class Accord.Video.ByteArrayUtils

Some internal utilities for handling arrays.
Show file Open project: accord-net/framework Class Usage Examples

Public Methods

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.

Method Details

Compare() public static method

Check if the array contains needle at specified position.
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

Find() public static method

Find subarray in the source array.
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