Westwind Utilities
DataUtils.IndexOfByteArray
Table of Contents
On this page:

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, byte[] bufferToFind)

Parameters

buffer
byte array to be searched

bufferToFind
bytes to find

Overloads

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

© West Wind Technologies, 2026 • updated: Jan 30, 2026
Comment or report problem with topic