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-2024 • Updated: 06/29/24
Comment or report problem with topic