C# Class Illumina.TerminalVelocity.ByteArrayExtensions

Find the index of a bytearray given a search bytearray
显示文件 Open project: basespace/TerminalVelocity

Public Methods

Method Description
IndexOf ( this self, byte candidate ) : int

Zero-base index of they location of the candidate bytearray

IndexOfAny ( this self, byte candidate ) : int[]

Private Methods

Method Description
IsEmptyLocate ( byte array, byte candidate ) : bool
IsMatch ( byte array, int position, byte candidate ) : bool

Method Details

IndexOf() public static method

Zero-base index of they location of the candidate bytearray
public static IndexOf ( this self, byte candidate ) : int
self this
candidate byte
return int

IndexOfAny() public static method

public static IndexOfAny ( this self, byte candidate ) : int[]
self this
candidate byte
return int[]