R
Rob Richardson
Greetings!
I am trying to read a file at the byte level (because the vendor does not
provide a tool that exposes the ifnormation I need). So, I need to read
offsets from within the file itself. For example, I know that the offset of
the first field I need to read is contained in bytes 5 through 8 of the
file. So I need to handle those bytes as an unsigned 32-bit number -- a
UInt32. Once I get to the start of the field, I need to move 12 more bytes
to get the first piece of data I need.
But the UInt32 structure does not support any type of arithmetic!
How am I supposed to add 12 to a UInt32?
I understand Whidbey will let us do this (along with any other true operator
overloading we want). I can't wait!
Rob
I am trying to read a file at the byte level (because the vendor does not
provide a tool that exposes the ifnormation I need). So, I need to read
offsets from within the file itself. For example, I know that the offset of
the first field I need to read is contained in bytes 5 through 8 of the
file. So I need to handle those bytes as an unsigned 32-bit number -- a
UInt32. Once I get to the start of the field, I need to move 12 more bytes
to get the first piece of data I need.
But the UInt32 structure does not support any type of arithmetic!
How am I supposed to add 12 to a UInt32?
I understand Whidbey will let us do this (along with any other true operator
overloading we want). I can't wait!
Rob