Binary Import - Endian

Help
sprobst
2006-12-01
2012-11-04
  • sprobst

    sprobst - 2006-12-01

    I want to import binary data. I work on a System with little endian and the binary data therefore is also little endian. But if I import this binary file, LabPlot imports the data as big endian. Is there a easy way to change this. Thanks for help if possible!

     
    • Stefan Gerlach

      Stefan Gerlach - 2006-12-01

      Hi,

      The problem is that LabPlot uses QDataStream which has big endian as default.
      I fixed this problem now in 1.6.0.pre2 where you can select the byte order.
      This is done with QDataStream::setByteOrder(QDataStream::LittleEndian).

      If you want to compile LabPlot yourself you can just add this line in the import dialog
      or use the upcoming version 1.6.0.pre2.

      hope this helps.

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks