[muscle] Bug in Flattenable::FlattenToDataIO ?

  • From: "Joel Lucsy" <jjlucsy@xxxxxxxxx>
  • To: muscle@xxxxxxxxxxxxx
  • Date: Wed, 26 Mar 2008 18:55:06 -0400


In writing my own C# library, I had some issues in when I wrote a
Message out to a file with the size header written to the output (a
file in this case). An empty message should be 12 bytes and with a
header, 16 bytes. However, only 12 bytes were being written out. So I
browsed the code and found that Flattenable::FlattenToDataIO (in
SetupSystem.cpp, line 616) uses the variable fs when writing to the
DataIO. I believe it should be using bufSize instead which includes
the size with the header.
BTW, if anyone is interested in an alternative C# library, let me know.

Joel Lucsy
"The dinosaurs became extinct because they didn't have a space
program." -- Larry Niven

Other related posts: