(self, length, encoding='ascii')
| 116 | class RetStr(object): |
| 117 | |
| 118 | def __init__(self, length, encoding='ascii'): |
| 119 | self.length = length |
| 120 | self.buffer = ctypes.create_string_buffer(b'', length) |
| 121 | self.encoding = encoding |
| 122 | |
| 123 | def __iter__(self): |
| 124 | yield self |