DataUtils.IndexOfByteArray

Returns an index into a byte array to find a string in the byte array. Exact match using the encoding provided or UTF-8 by default.

public static int IndexOfByteArray(Byte[] buffer,
	string stringToFind,
	Encoding encoding)

Parameters

buffer
Source buffer to look for string

stringToFind
string to search for (case sensitive)

encoding
Optional encoding to use - defaults to UTF-8 if null

Overloads:


See also:

Class DataUtils

© West Wind Technologies, 2019 • Updated: 06/23/19
Comment or report problem with topic