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

Represent a block of bytes, with support for byte ordering within byte groups of 16\- 32\- or 64\-bits.

## Constructor: BytesBlock
- parameter: `code`, type: `byte[]`

Description: Create a block of ungrouped bytes.
parameter: code: bytes

## Constructor: BytesBlock
- parameter: `code`, type: `byte[]`
- parameter: `endianness`, type: `com.pnfsoftware.jeb.util.io.Endianness`
- parameter: `groupSize`, type: `int`

Description: Create a block.
parameter: code: bytes
parameter: endianness: order which should be used to read code
parameter: groupSize: byte size to consider to swap between BE and LE \(2 for 16bits swap, 4 for            32bits swap...\)

## Method: equals
- parameter: `obj`, type: `java.lang.Object`
- return type: `boolean`


## Method: getBECode
- return type: `byte[]`

Description: Get the bytes in big\-endian order.
return: big\-endian bytes

## Method: getCode
- return type: `byte[]`

Description: Get the bytes in their original byte order.
return: original bytes

## Method: getCode
- parameter: `byteOrder`, type: `java.nio.ByteOrder`
- return type: `byte[]`

Description: Get the bytes for a requested byte order.
parameter: byteOrder: requested byte order
return: bytes in the requested order

## Method: getLECode
- return type: `byte[]`

Description: Get the bytes in little\-endian order.
return: little\-endian bytes

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


