Ignore:
Timestamp:
Jun 29, 2009, 4:49:46 PM (15 years ago)
Author:
Christoph Mayer
Message:

alle uint_8 auf uint_16 welche an serialisierung beteiligt sind

Location:
source/ariba/utility/types
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/types/Identifier.h

    r4614 r4618  
    569569/* serializers */
    570570sznBeginDefault( ariba::utility::Identifier, X ) {
     571
    571572        // calculate length of key
    572573        uint16_t len = array_size*sizeof(mp_limb_t);
    573         uint8_t unspec = isUnspec;
     574        uint16_t unspec = isUnspec; //TODO: was uint8_t
    574575
    575576        // only serialize the lower 16 bits of keyLength
    576577        X && unspec && len;
    577578
    578         /*
    579         if (X.isDeserializer()){
    580                 if(len != array_size*sizeof(mp_limb_t)){
    581                         std::cout << "len: " << len << ", array_size: "
    582                                 << array_size << ", sizeof(mp_limb_t): " << sizeof(mp_limb_t) << std::endl;
    583                         assert(false);
    584                 }
    585         }
    586         */
    587 
    588579        // serialize the identifier
    589580        for (int i=array_size-1; i>=0; i--) X && key[i];
    590581
    591         // when deserializing reset unspec flag
     582        // when deserializing set unspec flag
    592583        if (X.isDeserializer()){
    593                 //isUnspec = unspec;
    594                 isUnspec = false;
    595                 //std::cout << "isUnspec: " << (isUnspec ? "true" : "false") << "   " << "unspec: " << (int)unspec << std::endl;
     584                isUnspec = unspec;
    596585        }
    597586
  • source/ariba/utility/types/OverlayParameterSet.h

    r3718 r4618  
    6464
    6565private:
    66         uint8_t structure;
     66        uint16_t structure; //TODO: was uint8_t
    6767
    6868};
Note: See TracChangeset for help on using the changeset viewer.