G
Gravity
Hi,
I am a bit shocked that C# got nothing to do with C/C++.
Here is what I wanted to do;
Int32 f_nSomeValue = 200; // Supposed to be 4 bytes long in length, right?
MemoryStream f_MemoryStream = new MemoryStream(20);
f_MemoryStream.Write(&f_nSomeValue, 0 , 4);
The first param of the MemoryStream is expecting byte[ ]. I tried to cast it
but the complier would not let me to continue.
Does anyone know how do I convert the int32 so that it is can be used on the
MemoryStrem.Write( )?
Thanks for reading.
I am a bit shocked that C# got nothing to do with C/C++.
Here is what I wanted to do;
Int32 f_nSomeValue = 200; // Supposed to be 4 bytes long in length, right?
MemoryStream f_MemoryStream = new MemoryStream(20);
f_MemoryStream.Write(&f_nSomeValue, 0 , 4);
The first param of the MemoryStream is expecting byte[ ]. I tried to cast it
but the complier would not let me to continue.
Does anyone know how do I convert the int32 so that it is can be used on the
MemoryStrem.Write( )?
Thanks for reading.