class PAKFile::Header
Reperesents PAK header block
Attributes
magic[RW]
offset[RW]
size[RW]
Public Class Methods
new(header)
click to toggle source
Unpacks the 12 header bytes from entry
# File lib/pakspy.rb, line 161 def initialize(header) # magic - 4 byte arbitary string (not null terminated) # offset - 4 byte integer (little endian) # size - 4 byte integer (little endian) data = header.unpack "a4VV" @magic = data[0] @offset = data[1] @size = data[2] end