J
Jon Slaughter
Is there a way to collectively get the internal data for primitive types? So
for Int32, SByte, etc, I want to be able to get the byte stream used for the
data.
The reason is that I want a byte stream of the values but I don't want to
convert each one by hand(I started but its getting messy).
For, since double is a 64-bit type I'd like to get the actual bits in memory
so I can write them to a stream instead of converting the double to a byte
stream myself.
I'm thinking I'll probably have to use unsafe code and pointers but just
wanted to check and see if there was an easier way.
Thanks,
Jon
for Int32, SByte, etc, I want to be able to get the byte stream used for the
data.
The reason is that I want a byte stream of the values but I don't want to
convert each one by hand(I started but its getting messy).
For, since double is a 64-bit type I'd like to get the actual bits in memory
so I can write them to a stream instead of converting the double to a byte
stream myself.
I'm thinking I'll probably have to use unsafe code and pointers but just
wanted to check and see if there was an easier way.
Thanks,
Jon