class PAKFile::FileEntryPAK
File located inside the PAK itself
Public Class Methods
new(pack, entry)
click to toggle source
Calls superclass method
PAKFile::FileEntry::new
# File lib/pakspy.rb, line 194 def initialize(pack, entry) super pack # name - max 58 byte null terminated string # offset - 4 byte integer (little endian) # size - 4 byte integer (little endian) data = entry.unpack "a56VV" @name = data[0].rstrip @offset = data[1] @size = data[2] end
Public Instance Methods
read()
click to toggle source
# File lib/pakspy.rb, line 207 def read @pack.pak_file.seek @offset @pack.pak_file.read @size end