Created
February 19, 2011 12:42
-
-
Save julik/835044 to your computer and use it in GitHub Desktop.
bindata_phail.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "bindata" | |
class FileInfo < BinData::Record | |
string :magic, :length => 4 # Endianness (SDPX is big endian) | |
uint32 :image_offset # Offset to image data in bytes | |
end | |
# TypeError: unknown type 'uint32' in FileInfo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment