# Class: com.pnfsoftware.jeb.core.units.code.asm.NativeCodeUtil

Utility routines for [INativeCodeUnit](INativeCodeUnit). For generic code unit utility code, see [CodeUtil](CodeUtil).

## Constructor: NativeCodeUtil


## Static Method: createClassRebuilder
- parameter: `codeUnit`, type: `com.pnfsoftware.jeb.core.units.INativeCodeUnit<?>`
- return type: `com.pnfsoftware.jeb.core.units.code.asm.analyzer.IClassRebuilder`

Description: Convenience method to retrieve a JEB engines\-provided class rebuilder object best suited for the provided code unit.
parameter: codeUnit: 
return: possibly null

## Static Method: createClassRebuilder
- parameter: `codeUnit`, type: `com.pnfsoftware.jeb.core.units.INativeCodeUnit<?>`
- parameter: `decompiler`, type: `com.pnfsoftware.jeb.core.units.code.asm.decompiler.INativeDecompilerUnit<?>`
- return type: `com.pnfsoftware.jeb.core.units.code.asm.analyzer.IClassRebuilder`

Description: Convenience method to retrieve a JEB engines\-provided class rebuilder object best suited for the provided couple of code and decompiler units.
parameter: codeUnit: 
parameter: decompiler: 
return: possibly null

## Static Method: createDataItem
- parameter: `unit`, type: `com.pnfsoftware.jeb.core.units.INativeCodeUnit<?>`
- parameter: `address`, type: `long`
- parameter: `type`, type: `java.lang.String`
- parameter: `name`, type: `java.lang.String`
- return type: `com.pnfsoftware.jeb.core.units.code.asm.items.INativeDataItem`

Description: Convenience method to define and retrieve a a data item.
parameter: unit: native code unit
parameter: address: item start address
parameter: type: item type
parameter: name: item name
return: the item or null

