// str est un pointeur dans un tableau de caractères, qui doit contenir,
// à cet endroit la, la représentation binaire d'un entier (16 ou 32 bits)
// je veux récupérer ça ... dans un entier.
// str est un pointeur dans un tableau de caractères, qui doit contenir,
// à cet endroit la, la représentation binaire d'un entier (16 ou 32 bits)
// je veux récupérer ça ... dans un entier.
lgrLue = fread(deb, 1, HEADER_LENGTH_TO_READ, fp);
entCur = deb + 128;
lgrLue = fread(deb, 1, HEADER_LENGTH_TO_READ, fp);
entCur = deb + 128;
void gdcmHeader::GetPixels(size_t lgrTotale, void* _Pixels) {
size_t pixelsOffset;
pixelsOffset = GetPixelOffset();
void gdcmHeader::GetPixels(size_t lgrTotale, void* _Pixels) {
size_t pixelsOffset;
pixelsOffset = GetPixelOffset();
fseek(fp, pixelsOffset, SEEK_SET);
fread(_Pixels, 1, lgrTotale, fp);
}
fseek(fp, pixelsOffset, SEEK_SET);
fread(_Pixels, 1, lgrTotale, fp);
}
// Il y en a encore DIX-SEPT, comme ça.
// Il faudrait trouver qq chose + rusé ...
//
// Il y en a encore DIX-SEPT, comme ça.
// Il faudrait trouver qq chose + rusé ...
//
// in little endian, and big endian coding only starts at the next
// group. The corresponding code can be hard to analyse and adds
// many additional unnecessary tests for regular tags.
// in little endian, and big endian coding only starts at the next
// group. The corresponding code can be hard to analyse and adds
// many additional unnecessary tests for regular tags.
// when we find the first group with big endian encoding. This is
// easy to detect since the length of a "Group Length" tag (the
// ones with zero as element number) has to be of 4 (0x0004). When we
// when we find the first group with big endian encoding. This is
// easy to detect since the length of a "Group Length" tag (the
// ones with zero as element number) has to be of 4 (0x0004). When we
// The group length doesn't represent data to be loaded in memory, since
// each element of the group shall be loaded individualy.
if( elem == 0 )
// The group length doesn't represent data to be loaded in memory, since
// each element of the group shall be loaded individualy.
if( elem == 0 )
for (TagElValueHT::iterator tag = ht.begin(); tag != ht.end(); ++tag) {
LoadElementValue(tag->second);
}
for (TagElValueHT::iterator tag = ht.begin(); tag != ht.end(); ++tag) {
LoadElementValue(tag->second);
}