CMS 3D CMS Logo

CStringBuf.cc
Go to the documentation of this file.
1 #include <cassert>
2 
3 #include "Alignment/Geners/interface/CStringBuf.hh"
4 
5 namespace gs {
6  const char *CStringBuf::getGetBuffer(unsigned long long *len) const {
7  const long long delta = gptr() - eback();
8  assert(delta >= 0LL);
9  assert(len);
10  *len = delta;
11  return eback();
12  }
13 
14  const char *CStringBuf::getPutBuffer(unsigned long long *len) const {
15  const long long delta = pptr() - pbase();
16  assert(delta >= 0LL);
17  assert(len);
18  *len = delta;
19  return pbase();
20  }
21 } // namespace gs
cms::cuda::assert
assert(be >=bs)
gs
Definition: AbsArchive.cc:45
dumpMFGeometry_cfg.delta
delta
Definition: dumpMFGeometry_cfg.py:25
L1DTConfigBti_cff.LL
LL
Definition: L1DTConfigBti_cff.py:25