Changeset 2f7a97d in tol


Ignore:
Timestamp:
Aug 21, 2015, 4:39:38 PM (11 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
4ccf4d7c
Parents:
fc134ac
Message:

size_t Read/Write

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@6820 be4846ae-f051-483a-831f-b64e7d08527f

Location:
tol/OIS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tol/OIS/tol_oiscreator.h

    rfc134ac r2f7a97d  
    6868  bool Write(const unsigned BINT64&  x, BStream* stream);
    6969  // REVIEW: for compatibility size_t will be written/read as 4 bytes
    70   bool Write(const          size_t&  x, BStream* stream)
     70#if defined(_LP64) || defined(_WIN64)
     71   bool Write(const          size_t&  x, BStream* stream)
    7172  {
    7273    unsigned int _x = (unsigned int)x;
    7374    return this->Write( _x, stream );
    7475  }
     76#endif
    7577  bool Write(const          float&   x, BStream* stream);
    7678  bool Write(const          double&  x, BStream* stream);
  • tol/OIS/tol_oisloader.h

    rfc134ac r2f7a97d  
    103103  bool Read(unsigned BINT64&  x, BStream* stream);
    104104  // REVIEW: for compatibility size_t will be written/read as 4 bytes
     105#if defined(_LP64) || defined(_WIN64)
    105106  bool Read(size_t &     x, BStream* stream)
    106107  {
    … …  
    113114    return ok;
    114115  }
    115   bool Read(         float&   x, BStream* stream);
     116#endif
     117   bool Read(         float&   x, BStream* stream);
    116118  bool Read(         double&  x, BStream* stream);
    117119  bool Read(BText& v, BStream* stream);
Note: See TracChangeset for help on using the changeset viewer.