[This is preliminary documentation and is subject to change.]

Checks whether the sequence of bytes in data at the given offset matches the sequence of ASCII characters in value. Basically, checks whether the byte array contains the string at this offset.

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.3.2 (0.6.3.2)

Syntax

   
 C# 
[PureAttribute]
public static bool MemCmp(
	byte[] data,
	int offset,
	string value
)

Parameters

data
array<Byte>[]()[][]
Byte array to search.
offset
Int32
Offset, in bytes, from the start of data.
value
String
Value to search for. Must contain only ASCII characters.

Return Value

Whether the pattern was found.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionIf data or value is null.
System..::..ArgumentOutOfRangeException If offset is less than 0 or greater than data.Length.

See Also