ByteBufferIndexOf(ByteBuffer, Int32) Method

Returns the position of specified sequence of bytes in the buffer, strating searching at a specified index.

Definition

Namespace: OddPrg
Assembly: OddPrg (in OddPrg.dll) Version: 2.0.0.0 (2.0.0.0)
C#
public int IndexOf(
	ByteBuffer bytes,
	int startIndex
)

Parameters

bytes  ByteBuffer
A sequence to find
startIndex  Int32
Index to start searching

Return Value

Int32
The position of specified sequence of bytes in the buffer, -1 if specified sequence was not found

See Also