class Tipo::Header
Constants
- OffsetTable
full template 'a4n4'
- TableRecord
full template 'a4N3'
Attributes
font[R]
Public Class Methods
new(font)
click to toggle source
# File lib/tipo/header.rb, line 11 def initialize font @font = font end
Public Instance Methods
offset_table()
click to toggle source
# File lib/tipo/header.rb, line 15 def offset_table OffsetTable.new *(font.unpack seek: 0, bytes: 12, tmpl: 'a4n') end
table_records()
click to toggle source
# File lib/tipo/header.rb, line 19 def table_records font.seek 13 offset_table.tables_count.times.map do TableRecord.new *(font.unpack bytes: 16, tmpl: 'a4N2') end end