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, 1996-2020 • Updated: 07/15/20
Comment or report problem with topic