Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
Alignment
Geners
src
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)
CommonMethods.delta
def delta
Definition:
CommonMethods.py:323
Generated for CMSSW Reference Manual by
1.8.5