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

Function Encoded Memory area uses a generic Function to determine the real memory area to use. Since Memory area is dynamic, the length is also dynamic and must be set by user \(it is discouraged to use this [FunctionEncodedMemoryArea](FunctionEncodedMemoryArea) in composed [EncodedMemoryAreaList](EncodedMemoryAreaList) when length is dynamic\).

## Constructor: FunctionEncodedMemoryArea
- parameter: `length`, type: `int`
- parameter: `f`, type: `java.util.function.Function<byte[],java.lang.Long>`


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


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


