I have a C-like struct like this:
SomeStruct << BinData::Record
endian :little
uint32 :offsetOfName
uint32 :offsetOfLastname
#...
uint32 :lenVars
struct :Person, :length => :lenVars
string :name
string :lname
#...
end
I have a bunch of offsets and lengths before :Person
. All the offsets and lengths describe the data within the :Person
struct.
How can I start reading data at a specified offset, for the given length, or until the next offset?