can I convert an object/struct to raw data (byte array) and back again?

  • Thread starter Thread starter Chris LaJoie
  • Start date Start date
C

Chris LaJoie

I am wondering if it's possible to convert an object or a struct to a byte
array of the raw data. It's been a long time, but I seem to remember doing
this in C++ at one point, and with very little code. What I'd like to be
able to do is save a struct into a registry binary value.

Thanks in advance,
Chris LaJoie
 
Chris said:
I am wondering if it's possible to convert an object or a struct to a byte
array of the raw data. It's been a long time, but I seem to remember doing
this in C++ at one point, and with very little code. What I'd like to be
able to do is save a struct into a registry binary value.

Thanks in advance,
Chris LaJoie


Implement "ISerializable",
save it to MemoryStream,
get the memory buffer.
 
Back
Top