# Class: com.pnfsoftware.jeb.core.units.code.asm.processor.arch.RegisterUtil

Utility methods for [IRegisterBank](IRegisterBank) and [IRegisterData](IRegisterData), including methods to create standard register ids.

## Constructor: RegisterUtil


## Static Method: byteArrayToHex
- parameter: `endianness`, type: `com.pnfsoftware.jeb.util.io.Endianness`
- parameter: `data`, type: `byte[]`
- return type: `java.lang.String`


## Static Method: byteArrayToHex
- parameter: `endianness`, type: `com.pnfsoftware.jeb.util.io.Endianness`
- parameter: `data`, type: `byte[]`
- parameter: `pos`, type: `int`
- parameter: `end`, type: `int`
- return type: `java.lang.String`


## Static Method: createPureRegisterId
- parameter: `index`, type: `int`
- parameter: `grp`, type: `int`
- return type: `long`

Description: Create a pure register id, i.e. an id always representing a full register, without indicators such as bit size or bit start.
parameter: index: 
parameter: grp: 
return: 

## Static Method: createRegisterId
- parameter: `index`, type: `int`
- parameter: `grp`, type: `int`
- parameter: `bitsize`, type: `int`
- return type: `long`

Description: Create a standard register id \(full or slice\).
parameter: index: 
parameter: grp: 
parameter: bitsize: 
return: 

## Static Method: createRegisterId
- parameter: `index`, type: `int`
- parameter: `grp`, type: `int`
- parameter: `bitsize`, type: `int`
- parameter: `bitstart`, type: `int`
- return type: `long`

Description: Create a standard register id \(full or slice\).
parameter: index: 
parameter: grp: 
parameter: bitsize: 
parameter: bitstart: 
return: 

## Static Method: createRegisterIdFromPureId
- parameter: `pure`, type: `long`
- parameter: `bitsize`, type: `int`
- parameter: `bitstart`, type: `int`
- return type: `long`


## Static Method: getBank
- parameter: `proctype`, type: `com.pnfsoftware.jeb.core.units.codeobject.ProcessorType`
- return type: `com.pnfsoftware.jeb.core.units.code.asm.processor.IRegisterBank`

Description: Convenience method to retrieve a register bank used by a well\-known processor type. 

 It is recommended to use [RegisterBankService](RegisterBankService) directly.
parameter: proctype: a processor type
return: null if not found

## Static Method: getEntryByName
- parameter: `bank`, type: `com.pnfsoftware.jeb.core.units.code.asm.processor.IRegisterBank`
- parameter: `name`, type: `java.lang.String`
- return type: `com.pnfsoftware.jeb.core.units.code.asm.processor.RegisterDescriptionEntry`


## Static Method: getEntryByName
- parameter: `bank`, type: `com.pnfsoftware.jeb.core.units.code.asm.processor.IRegisterData`
- parameter: `name`, type: `java.lang.String`
- return type: `com.pnfsoftware.jeb.core.units.code.asm.processor.RegisterDescriptionEntry`


## Static Method: getEntryByType
- parameter: `bank`, type: `com.pnfsoftware.jeb.core.units.code.asm.processor.IRegisterBank`
- parameter: `type`, type: `com.pnfsoftware.jeb.core.units.code.asm.processor.RegisterType`
- return type: `com.pnfsoftware.jeb.core.units.code.asm.processor.RegisterDescriptionEntry`


## Static Method: getEntryByType
- parameter: `bank`, type: `com.pnfsoftware.jeb.core.units.code.asm.processor.IRegisterData`
- parameter: `type`, type: `com.pnfsoftware.jeb.core.units.code.asm.processor.RegisterType`
- return type: `com.pnfsoftware.jeb.core.units.code.asm.processor.RegisterDescriptionEntry`


## Static Method: getPureId
- parameter: `id`, type: `long`
- return type: `long`


## Static Method: getRegisterBitsize
- parameter: `id`, type: `long`
- return type: `int`


## Static Method: getRegisterBitstart
- parameter: `id`, type: `long`
- return type: `int`


## Static Method: getRegisterGroup
- parameter: `id`, type: `long`
- return type: `int`


## Static Method: getRegisterIndex
- parameter: `id`, type: `long`
- return type: `int`


## Static Method: getValueByName
- parameter: `bank`, type: `com.pnfsoftware.jeb.core.units.code.asm.processor.IRegisterData`
- parameter: `name`, type: `java.lang.String`
- return type: `byte[]`


## Static Method: getValueByNameAsLong
- parameter: `bank`, type: `com.pnfsoftware.jeb.core.units.code.asm.processor.IRegisterData`
- parameter: `name`, type: `java.lang.String`
- return type: `java.lang.Long`


## Static Method: isPureId
- parameter: `id`, type: `long`
- return type: `boolean`


## Static Method: setValueByName
- parameter: `bank`, type: `com.pnfsoftware.jeb.core.units.code.asm.processor.IRegisterData`
- parameter: `name`, type: `java.lang.String`
- parameter: `bytes`, type: `byte[]`
- return type: `boolean`


## Static Method: setValueByNameAsLong
- parameter: `bank`, type: `com.pnfsoftware.jeb.core.units.code.asm.processor.IRegisterData`
- parameter: `name`, type: `java.lang.String`
- parameter: `value`, type: `long`
- return type: `boolean`


