ATLAS Offline Software
Loading...
Searching...
No Matches
python.root_pickle.Read_Wrapper Class Reference
Collaboration diagram for python.root_pickle.Read_Wrapper:

Public Member Functions

 __init__ (self)
 read (self, i)
 readline (self)
 setvalue (self, s)
 reopen (self)

Protected Attributes

 _s = s
 _str = self._s.String()
int _pos = 0

Detailed Description

Definition at line 138 of file root_pickle.py.

Constructor & Destructor Documentation

◆ __init__()

python.root_pickle.Read_Wrapper.__init__ ( self)

Definition at line 139 of file root_pickle.py.

139 def __init__ (self):
140 self.reopen()
141
142

Member Function Documentation

◆ read()

python.root_pickle.Read_Wrapper.read ( self,
i )

Definition at line 143 of file root_pickle.py.

143 def read (self, i):
144 out = []
145 slen = len(self._str)
146 while i != 0 and self._pos < slen:
147 c = ord(self._str[self._pos])
148 if c == 0xff:
149 self._pos += 1
150 if self._pos >= slen:
151 break
152 c = ord(self._str[self._pos])
153 if c == 0x01:
154 c = 0x00
155 elif c == 0xfe:
156 c = 0xff
157 out.append (c)
158 self._pos += 1
159 i -= 1
160 return bytes(out)
161
162
IovVectorMap_t read(const Folder &theFolder, const SelectionCriterion &choice, const unsigned int limit=10)

◆ readline()

python.root_pickle.Read_Wrapper.readline ( self)

Definition at line 163 of file root_pickle.py.

163 def readline (self):
164 out = []
165 slen = len(self._str)
166 while self._pos < slen:
167 c = ord(self._str[self._pos])
168 if c == 0xff:
169 self._pos += 1
170 if self._pos >= slen:
171 break
172 c = ord(self._str[self._pos])
173 if c == 0x01:
174 c = 0x00
175 elif c == 0xfe:
176 c = 0xff
177 out.append (c)
178 self._pos += 1
179 if c == 10:
180 break
181 return bytes(out)
182
183

◆ reopen()

python.root_pickle.Read_Wrapper.reopen ( self)

Definition at line 191 of file root_pickle.py.

191 def reopen (self):
192 self.setvalue (ROOT.TObjString())
193 return
194
195

◆ setvalue()

python.root_pickle.Read_Wrapper.setvalue ( self,
s )

Definition at line 184 of file root_pickle.py.

184 def setvalue (self, s):
185 self._s = s
186 self._str = self._s.String()
187 self._pos = 0
188 return
189
190

Member Data Documentation

◆ _pos

int python.root_pickle.Read_Wrapper._pos = 0
protected

Definition at line 187 of file root_pickle.py.

◆ _s

python.root_pickle.Read_Wrapper._s = s
protected

Definition at line 185 of file root_pickle.py.

◆ _str

python.root_pickle.Read_Wrapper._str = self._s.String()
protected

Definition at line 186 of file root_pickle.py.


The documentation for this class was generated from the following file: