public class

BytesBlock

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.asm.processor.BytesBlock

Class Overview

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

Summary

Public Constructors
BytesBlock(byte[] code, Endianness endianness, int groupSize)
Create a block.
Public Methods
boolean equals(Object obj)
byte[] getBECode()
byte[] getCode()
byte[] getCode(ByteOrder byteOrder)
byte[] getLECode()
int hashCode()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public BytesBlock (byte[] code, Endianness endianness, int groupSize)

Create a block.

Parameters
code bytes
endianness order which should be used to read code
groupSize byte size to consider to swap between BE and LE (2 for 16bits swap, 4 for 32bits swap...)

Public Methods

public boolean equals (Object obj)

public byte[] getBECode ()

public byte[] getCode ()

public byte[] getCode (ByteOrder byteOrder)

public byte[] getLECode ()

public int hashCode ()