C# Класс Accord.Video.ByteArrayUtils

Some internal utilities for handling arrays.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Compare() публичный статический метод

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.
Результат bool

Find() публичный статический метод

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.
Результат int