C# Class HttpMultipartParser.SubsequenceFinder

Provides methods to find a subsequence within a sequence.
Show file Open project: Vodurden/Http-Multipart-Data-Parser Class Usage Examples

Public Methods

Method Description
Search ( byte haystack, byte needle ) : int
Search ( byte haystack, byte needle, int haystackLength ) : int

Finds if a sequence exists within another sequence.

Method Details

Search() public static method

public static Search ( byte haystack, byte needle ) : int
haystack byte
needle byte
return int

Search() public static method

Finds if a sequence exists within another sequence.
public static Search ( byte haystack, byte needle, int haystackLength ) : int
haystack byte /// The sequence to search ///
needle byte /// The sequence to look for ///
haystackLength int /// The length of the haystack to consider for searching ///
return int