Class: Baikal::Hexdump::Row

Inherits:
Object
  • Object
show all
Defined in:
lib/baikal/hexdump.rb

Overview

Represents the row currently being processed by hexdump.

Instance Attribute Summary collapse

Instance Attribute Details

#dataObject

Bytes of this row in an Array instance. For the last row, some of the trailing elements may be nil.



49
50
51
# File 'lib/baikal/hexdump.rb', line 49

def data
  @data
end

#expected_sizeObject

The row’s expected size, as per Hexdump::Format#bytes_per_row.



43
44
45
# File 'lib/baikal/hexdump.rb', line 43

def expected_size
  @expected_size
end

#offsetObject

Offset of the first byte on this row.



38
39
40
# File 'lib/baikal/hexdump.rb', line 38

def offset
  @offset
end