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

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

## 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: native code unit
return: class rebuilder, or 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: native code unit
parameter: decompiler: native decompiler unit
return: class rebuilder, or 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

