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 142 of file root_pickle.py.

Constructor & Destructor Documentation

◆ __init__()

python.root_pickle.Read_Wrapper.__init__ ( self)

Definition at line 143 of file root_pickle.py.

143 def __init__ (self):
144 self.reopen()
145
146

Member Function Documentation

◆ read()

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

Definition at line 147 of file root_pickle.py.

147 def read (self, i):
148 out = []
149 slen = len(self._str)
150 while i != 0 and self._pos < slen:
151 c = ord(self._str[self._pos])
152 if c == 0xff:
153 self._pos += 1
154 if self._pos >= slen:
155 break
156 c = ord(self._str[self._pos])
157 if c == 0x01:
158 c = 0x00
159 elif c == 0xfe:
160 c = 0xff
161 out.append (c)
162 self._pos += 1
163 i -= 1
164 return bytes(out)
165
166
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 167 of file root_pickle.py.

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

◆ reopen()

python.root_pickle.Read_Wrapper.reopen ( self)

Definition at line 195 of file root_pickle.py.

195 def reopen (self):
196 self.setvalue (ROOT.TObjString())
197 return
198
199

◆ setvalue()

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

Definition at line 188 of file root_pickle.py.

188 def setvalue (self, s):
189 self._s = s
190 self._str = self._s.String()
191 self._pos = 0
192 return
193
194

Member Data Documentation

◆ _pos

int python.root_pickle.Read_Wrapper._pos = 0
protected

Definition at line 191 of file root_pickle.py.

◆ _s

python.root_pickle.Read_Wrapper._s = s
protected

Definition at line 189 of file root_pickle.py.

◆ _str

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

Definition at line 190 of file root_pickle.py.


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