J
John Dumais
Hello,
I have been trying to figure out how to write an array of doubles (in
this specific case) to a binary stream without using a loop. What I
have been doing is...
foreach(double d in TraceData)
{
instanceOfBinaryWriter.Write(d);
}
The loop is introducing overhead I don't want. In unmanaged c++, I
would just do something like...
fwrite(buffer, sizeof(double), numArrayElements, fileStream)
Is their an equivalent using c#?
Thanks,
I have been trying to figure out how to write an array of doubles (in
this specific case) to a binary stream without using a loop. What I
have been doing is...
foreach(double d in TraceData)
{
instanceOfBinaryWriter.Write(d);
}
The loop is introducing overhead I don't want. In unmanaged c++, I
would just do something like...
fwrite(buffer, sizeof(double), numArrayElements, fileStream)
Is their an equivalent using c#?
Thanks,