X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmSeqEntry.cxx;h=76d57104390038b2aeaa75b021b5056aece136f7;hb=3afc179392ebebe610f7685bc8895b690c2a66aa;hp=88e79a62d7d0b24fe71914870daee30b8b33bdc4;hpb=e9fee33d4fe77ece33a62f08f30d7b144af0a45b;p=gdcm.git diff --git a/src/gdcmSeqEntry.cxx b/src/gdcmSeqEntry.cxx index 88e79a62..76d57104 100644 --- a/src/gdcmSeqEntry.cxx +++ b/src/gdcmSeqEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmSeqEntry.cxx,v $ Language: C++ - Date: $Date: 2004/10/25 03:03:45 $ - Version: $Revision: 1.33 $ + Date: $Date: 2004/11/15 02:18:37 $ + Version: $Revision: 1.35 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -54,12 +54,12 @@ SeqEntry::SeqEntry( DictEntry* e ) SeqEntry::SeqEntry( DocEntry* e, int depth ) : DocEntry( e->GetDictEntry() ) { - this->UsableLength = 0; - this->ReadLength = 0xffffffff; + UsableLength = 0; + ReadLength = 0xffffffff; SQDepthLevel = depth; - this->ImplicitVR = e->IsImplicitVR(); - this->Offset = e->GetOffset(); + ImplicitVR = e->IsImplicitVR(); + Offset = e->GetOffset(); } /** @@ -138,9 +138,9 @@ void SeqEntry::Write(std::ofstream* fp, FileType filetype) // we force the writting of a Sequence Delimitation item // because we wrote the Sequence as a 'no Length' sequence - fp->write ( (char*)&seq_term_gr,(size_t)2 ); - fp->write ( (char*)&seq_term_el,(size_t)2 ); - fp->write ( (char*)&seq_term_lg,(size_t)4 ); + binary_write(*fp, seq_term_gr); + binary_write(*fp, seq_term_el); + binary_write(*fp, seq_term_lg); } //-----------------------------------------------------------------------------