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

@Ser public class BytesBlock extends Object
Represent a block of bytes, with support for byte ordering within byte groups of 16- 32- or 64-bits.
  • Constructor Details

    • BytesBlock

      public BytesBlock(byte[] code)
      Create a block of ungrouped bytes.
      Parameters:
      code -
    • BytesBlock

      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...)
  • Method Details

    • getCode

      public byte[] getCode()
    • getCode

      public byte[] getCode(ByteOrder byteOrder)
    • getBECode

      public byte[] getBECode()
    • getLECode

      public byte[] getLECode()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object