Skip to content

Instantly share code, notes, and snippets.

@julik
Created February 19, 2011 12:42
Show Gist options
  • Save julik/835044 to your computer and use it in GitHub Desktop.
Save julik/835044 to your computer and use it in GitHub Desktop.
bindata_phail.rb
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