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

A layout bridge permits converting from one register layout to another. The join\-attribute used is the register name. Seemingly incompatible register descriptions are handled by padding or truncation.

## Constructor: RegisterLayoutBridge
- parameter: `srcLayout`, type: `com.pnfsoftware.jeb.core.units.code.asm.processor.IRegisterBank`
- parameter: `dstLayout`, type: `com.pnfsoftware.jeb.core.units.code.asm.processor.IRegisterBank`

Description: Create a register layout bridge.
parameter: srcLayout: source register layout
parameter: dstLayout: destination register layout

## Method: convertDestination
- parameter: `regnum`, type: `int`
- return type: `java.lang.Integer`

Description: Convert a destination register number to a source register number.
parameter: regnum: destination register number
return: source register number, or null

## Method: convertDestinationValue
- parameter: `dstRegnum`, type: `int`
- parameter: `srcRegnum`, type: `int`
- parameter: `value`, type: `byte[]`
- return type: `byte[]`

Description: Convert a destination register value to fit a source register.
parameter: dstRegnum: destination register number
parameter: srcRegnum: source register number
parameter: value: destination register value
return: adjusted value

## Method: convertSource
- parameter: `regnum`, type: `int`
- return type: `java.lang.Integer`

Description: Convert a source register number to a destination register number.
parameter: regnum: source register number
return: destination register number, or null

## Method: convertSourceValue
- parameter: `srcRegnum`, type: `int`
- parameter: `dstRegnum`, type: `int`
- parameter: `value`, type: `byte[]`
- return type: `byte[]`

Description: Convert a source register value to fit a destination register.
parameter: srcRegnum: source register number
parameter: dstRegnum: destination register number
parameter: value: source register value
return: adjusted value

## Method: toString
- return type: `java.lang.String`


