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

Utility routines for [IEncodedMemoryArea](IEncodedMemoryArea).

## Static Method: signExtendInt
- parameter: `code`, type: `byte[]`
- parameter: `memoryAreas`, type: `com.pnfsoftware.jeb.core.units.code.asm.processor.memory.IEncodedMemoryArea`
- return type: `int`

Description: Decode and sign\-extend an encoded area as an integer.
parameter: code: instruction bytes
parameter: memoryAreas: encoded memory area
return: sign\-extended value

## Static Method: signExtendLong
- parameter: `code`, type: `byte[]`
- parameter: `memoryAreas`, type: `com.pnfsoftware.jeb.core.units.code.asm.processor.memory.IEncodedMemoryArea`
- return type: `long`

Description: Decode and sign\-extend an encoded area as a long.
parameter: code: instruction bytes
parameter: memoryAreas: encoded memory area
return: sign\-extended value

## Static Method: zeroExtend
- parameter: `code`, type: `byte[]`
- parameter: `memoryArea`, type: `com.pnfsoftware.jeb.core.units.code.asm.processor.memory.IEncodedMemoryArea`
- return type: `int`

Description: Decode and zero\-extend an encoded area as an integer.
parameter: code: instruction bytes
parameter: memoryArea: encoded memory area
return: zero\-extended value

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

Description: Extract and zero\-extend bits from instruction bytes.
parameter: code: instruction bytes
parameter: index: bit index
parameter: length: length in bits
return: zero\-extended value

## Static Method: zeroExtendLong
- parameter: `code`, type: `byte[]`
- parameter: `memoryAreas`, type: `com.pnfsoftware.jeb.core.units.code.asm.processor.memory.IEncodedMemoryArea[]`
- return type: `long`

Description: Decode and zero\-extend several adjacent encoded areas as a long.
parameter: code: instruction bytes
parameter: memoryAreas: encoded memory areas, from most significant to least significant
return: zero\-extended value

