Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:56:21

0001 #include <cassert>
0002 
0003 #include "Alignment/Geners/interface/CStringBuf.hh"
0004 
0005 namespace gs {
0006   const char *CStringBuf::getGetBuffer(unsigned long long *len) const {
0007     const long long delta = gptr() - eback();
0008     assert(delta >= 0LL);
0009     assert(len);
0010     *len = delta;
0011     return eback();
0012   }
0013 
0014   const char *CStringBuf::getPutBuffer(unsigned long long *len) const {
0015     const long long delta = pptr() - pbase();
0016     assert(delta >= 0LL);
0017     assert(len);
0018     *len = delta;
0019     return pbase();
0020   }
0021 }  // namespace gs