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