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)
{
instanceOfBinar yWriter.Write(d );
}
The loop is introducing overhead I don't want. In unmanaged c++, I
would just do something like...
fwrite(buffer, sizeof(double), numArrayElement s, 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)
{
instanceOfBinar yWriter.Write(d );
}
The loop is introducing overhead I don't want. In unmanaged c++, I
would just do something like...
fwrite(buffer, sizeof(double), numArrayElement s, fileStream)
Is their an equivalent using c#?
Thanks,
Comment