[Insight-developers] double precision byte swapper?

Kent Williams kent@mail.psychiatry.uiowa.edu
Wed, 12 Feb 2003 14:32:51 -0600


Here's a good one: The itk::ByteSwapper<T> refuses to byte-swap a buffer =
full=20
of double precision numbers, because it won't byte swap any data type X f=
or=20
which sizeof(X) > 4.

Not that double-precision Analyze format files are that common, but for=20
completeness sake (and code coverage), it would be good to handle that ca=
se.=20

My question, I guess, is this: Is there a reason that itk::Byteswapper=20
shouldn't swap double precision files, or should I just go ahead and add =
an 8=20
byte byte swapper?