Header menu logo B2R2

HexDump Module

Provides hex dumping functionality.

Functions and values

Function or value Description

HexDump.makeLines bytesPerLine wordSize useColor addr bytes

Full Usage: HexDump.makeLines bytesPerLine wordSize useColor addr bytes

Parameters:
    bytesPerLine : int - Number of bytes to display per line. Must be positive.
    wordSize : WordSize - Word size used to format each line address.
    useColor : bool - Whether to emit colored output segments.
    addr : uint64 - Starting address for the dump.
    bytes : byte array - The byte array to render.

Returns: OutString array One OutString per rendered line. Each element is either colored or plain depending on useColor.

Renders the given byte array as hex dump lines. Each line contains the current address, hexadecimal byte values padded to bytesPerLine, and the ASCII representation of the bytes.

bytesPerLine : int

Number of bytes to display per line. Must be positive.

wordSize : WordSize

Word size used to format each line address.

useColor : bool

Whether to emit colored output segments.

addr : uint64

Starting address for the dump.

bytes : byte array

The byte array to render.

Returns: OutString array

One OutString per rendered line. Each element is either colored or plain depending on useColor.

Type something to start searching.