Converting from Byte[] to other value types.

JP Bridges

Newcomer
Joined
Jul 19, 2003
Messages
11
Folks,

This is probably a fairly basic problem but I'm having trouble finding a solution.

I've opened a file stream to read file x. The first element of file x is a structure of type y, this structure consists of your basic unmanaged elements, ints, fixed char arrays, etc.

What is the best way of extracting and using the structure in managed code.

I can read the correct amount of bytes from the file stream into a byte array... so I figure I have the data but in the wrong format, I'm not sure how to get this data and turn it into something I can use.

JP
 
Back
Top