# Class: com.pnfsoftware.jeb.core.units.code.asm.processor.memory.DirectEncodedMemoryArea

Represent a memory Area in code. A memory area is composed of an index and a length

## Protected Constructor: DirectEncodedMemoryArea
- parameter: `index`, type: `int`
- parameter: `length`, type: `int`


## Method: decode
- parameter: `code`, type: `byte[]`
- return type: `long`


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


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


## Method: shift
- parameter: `shift`, type: `int`
- return type: `com.pnfsoftware.jeb.core.units.code.asm.processor.memory.EncodedMemoryAreaList`


## Static Method: decodeInt
- parameter: `index`, type: `int`
- parameter: `length`, type: `int`
- parameter: `code`, type: `byte[]`
- return type: `int`


## Static Method: get
- parameter: `index`, type: `int`
- parameter: `length`, type: `int`
- return type: `com.pnfsoftware.jeb.core.units.code.asm.processor.memory.DirectEncodedMemoryArea`

Description: Build a [DirectEncodedMemoryArea](DirectEncodedMemoryArea) from index, length. index 0 represent the LSB

## Static Method: getThumb2
- parameter: `index`, type: `int`
- parameter: `zone`, type: `int`
- parameter: `length`, type: `int`
- return type: `com.pnfsoftware.jeb.core.units.code.asm.processor.memory.DirectEncodedMemoryArea`

Description: Build an [DirectEncodedMemoryArea](DirectEncodedMemoryArea) for Thumb\-2
parameter: index: index in the 16\-bit area
parameter: zone: 0 for the LSB side, 1 for the MSB

