SND@LHC Software
Loading...
Searching...
No Matches
rootpyPickler.IO_Wrapper Class Reference

Public Member Functions

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

Private Attributes

 __s
 

Detailed Description

Definition at line 99 of file rootpyPickler.py.

Constructor & Destructor Documentation

◆ __init__()

rootpyPickler.IO_Wrapper.__init__ (   self)

Definition at line 100 of file rootpyPickler.py.

100 def __init__(self):
101 return self.reopen()
102

Member Function Documentation

◆ getvalue()

rootpyPickler.IO_Wrapper.getvalue (   self)

Definition at line 112 of file rootpyPickler.py.

112 def getvalue(self):
113 return self.__s.getvalue()
114

◆ read()

rootpyPickler.IO_Wrapper.read (   self,
  i 
)

Definition at line 106 of file rootpyPickler.py.

106 def read(self, i):
107 return self.__s.read(i).encode('utf-8')
108

◆ readline()

rootpyPickler.IO_Wrapper.readline (   self)

Definition at line 109 of file rootpyPickler.py.

109 def readline(self):
110 return self.__s.readline().encode('utf-8')
111

◆ reopen()

rootpyPickler.IO_Wrapper.reopen (   self)

Definition at line 119 of file rootpyPickler.py.

119 def reopen(self):
120 self.__s = StringIO()
121 return
122
123

◆ setvalue()

rootpyPickler.IO_Wrapper.setvalue (   self,
  s 
)

Definition at line 115 of file rootpyPickler.py.

115 def setvalue(self, s):
116 self.__s = StringIO(_restore(s.encode('utf-8')).decode('utf-8'))
117 return
118

◆ write()

rootpyPickler.IO_Wrapper.write (   self,
  s 
)

Definition at line 103 of file rootpyPickler.py.

103 def write(self, s):
104 return self.__s.write(_protect(s).decode('utf-8'))
105

Member Data Documentation

◆ __s

rootpyPickler.IO_Wrapper.__s
private

Definition at line 116 of file rootpyPickler.py.


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