X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmValEntry.cxx;h=052444766083ff178c23f99b34f5c238dce03fb1;hb=f0ea8af1179c35ddc83da32df10813899427214d;hp=9f337bdea15fef6f9fd84aaef8bdbbfaeb3872ce;hpb=fea9426f960497d2d9124ab532d2097f2915678f;p=gdcm.git diff --git a/src/gdcmValEntry.cxx b/src/gdcmValEntry.cxx index 9f337bde..05244476 100644 --- a/src/gdcmValEntry.cxx +++ b/src/gdcmValEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmValEntry.cxx,v $ Language: C++ - Date: $Date: 2004/10/22 03:05:42 $ - Version: $Revision: 1.31 $ + Date: $Date: 2004/11/05 20:23:14 $ + Version: $Revision: 1.33 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -200,8 +200,7 @@ void ValEntry::Write(std::ofstream* fp, FileType filetype) for (unsigned int i=0; iwrite ( (char*)ptr,(size_t)2); + binary_write( *fp, val_uint16); } tokens.clear(); return; @@ -218,14 +217,15 @@ void ValEntry::Write(std::ofstream* fp, FileType filetype) for (unsigned int i=0; iwrite ( (char*)ptr,(size_t)4 ); + binary_write( *fp, val_uint32); } tokens.clear(); return; } - - fp->write (GetValue().c_str(), (size_t)lgr ); // Elem value + + //Due to seriously broken Theralys images I cannot put that here. + //assert( lgr == GetValue().size() ); + binary_write(*fp, GetValue()); } //-----------------------------------------------------------------------------