Changeset 22c1c0a


Ignore:
Timestamp:
10/29/18 16:33:25 (6 years ago)
Author:
Hal Finkel <hfinkel@…>
Branches:
master, pympi
Children:
dd56945
Parents:
1aa7cbe
git-author:
Hal Finkel <hfinkel@…> (10/29/18 16:33:25)
git-committer:
Hal Finkel <hfinkel@…> (10/29/18 16:33:25)
Message:

Allow Blosc to increase the size over the sz output (only a little bit, hopefully)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GenericIO.cxx

    r1aa7cbe r22c1c0a  
    609609#endif 
    610610 
    611         LocalCData[i].resize(LocalCData[i].size() + OrigDataSize); 
     611        size_t RealOrigDataSize = NElems*Vars[i].Size; 
     612        LocalCData[i].resize(LocalCData[i].size() + RealOrigDataSize); 
    612613        if (blosc_compress(9, 1, OrigUnitSize, OrigDataSize, OrigData, 
    613614                           &LocalCData[i][0] + sizeof(CompressHeader<IsBigEndian>), 
    614                            OrigDataSize) <= 0) { 
     615                           RealOrigDataSize) <= 0) { 
    615616          if (FreeOrigData) 
    616617            free(OrigData); 
Note: See TracChangeset for help on using the changeset viewer.