Lines Matching refs:ofp
98 def __init__(self, ofp): argument
99 self.ofp = ofp
120 self.ofp.write(self.hqxdata[first:last] + b'\r')
125 self.ofp.write(self.hqxdata + b':\r')
132 self.ofp.close()
133 del self.ofp
138 def __init__(self, ofp): argument
139 self.ofp = ofp
148 self.ofp.write(rledata)
155 self.ofp.write(rledata)
156 self.ofp.close()
157 del self.ofp
160 def __init__(self, name_finfo_dlen_rlen, ofp): argument
163 if isinstance(ofp, str):
164 ofname = ofp
165 ofp = io.open(ofname, 'wb')
168 ofp.write(b'(This file must be converted with BinHex 4.0)\r\r:')
169 hqxer = _Hqxcoderengine(ofp)
170 self.ofp = _Rlecoderengine(hqxer)
180 ofp.close()
204 self.ofp.write(data)
213 self.ofp.write(struct.pack(fmt, self.crc))
249 ofp = self.ofp
250 del self.ofp
251 ofp.close()
256 ofp = BinHex(finfo, out)
263 ofp.write(d)
264 ofp.close_data()
270 ofp.write_rsrc(d)
271 ofp.close()
484 with io.open(out, 'wb') as ofp:
489 ofp.write(d)
494 ofp = openrsrc(out, 'wb')
495 ofp.write(d)
499 ofp.write(d)
500 ofp.close()