# Class: com.pnfsoftware.jeb.core.units.code.asm.analyzer.BinaryPattern

Basic implementation of a binary pattern. The checks are bytes\+mask only; The custom verification method simply returns true.

## Constructor: BinaryPattern
- parameter: `binary`, type: `byte[]`

Description: Create a binary pattern without a mask.
parameter: binary: pattern bytes

## Constructor: BinaryPattern
- parameter: `binary`, type: `byte[]`
- parameter: `mask`, type: `byte[]`

Description: Create a binary pattern.
parameter: binary: pattern bytes
parameter: mask: optional byte mask

## Constructor: BinaryPattern
- parameter: `binary`, type: `byte[]`
- parameter: `mask`, type: `byte[]`
- parameter: `realStartOffset`, type: `int`

Description: Create a binary pattern.
parameter: binary: pattern bytes
parameter: mask: optional byte mask
parameter: realStartOffset: offset of the first pattern byte from the verified buffer start

## Constructor: BinaryPattern
- parameter: `binary`, type: `byte[]`
- parameter: `mask`, type: `byte[]`
- parameter: `realStartOffset`, type: `int`
- parameter: `processorMode`, type: `int`

Description: Create a binary pattern.
parameter: binary: pattern bytes
parameter: mask: optional byte mask
parameter: realStartOffset: offset of the first pattern byte from the verified buffer start
parameter: processorMode: processor mode restriction

## Method: getBinary
- return type: `byte[]`


## Method: getExtra
- return type: `java.lang.Object`


## Method: getMask
- return type: `byte[]`


## Method: getProcessorMode
- return type: `int`


## Method: getRealStartOffset
- return type: `int`


## Method: toString
- return type: `java.lang.String`


## Method: validate
- parameter: `gca`, type: `com.pnfsoftware.jeb.core.units.code.asm.analyzer.INativeCodeAnalyzer<?>`
- parameter: `address`, type: `long`
- parameter: `buffer`, type: `byte[]`
- parameter: `offset`, type: `int`
- parameter: `offsetEnd`, type: `int`
- return type: `boolean`


