UtilitiesHasMagicBytes Method (Byte, String) |
Determines whether the arrData array begins with the supplied sMagics ASCII text. Used for Content-Type sniffing.
Namespace: FiddlerAssembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax public static bool HasMagicBytes(
byte[] arrData,
string sMagics
)
Public Shared Function HasMagicBytes (
arrData As Byte(),
sMagics As String
) As Boolean
public:
static bool HasMagicBytes(
array<unsigned char>^ arrData,
String^ sMagics
)
Parameters
- arrData
- Type: SystemByte
The data, or null - sMagics
- Type: SystemString
The ASCII text to look for
Return Value
Type:
BooleanTRUE if arrData begins with sMagics (encoded as ASCII octets)
See Also