Return a tuple containing the C-struct fields in this stream specified by *template* and starting at *offset*.
(self, template, offset=0)
| 214 | return self._file.read(length) |
| 215 | |
| 216 | def read_fields(self, template, offset=0): |
| 217 | """ |
| 218 | Return a tuple containing the C-struct fields in this stream |
| 219 | specified by *template* and starting at *offset*. |
| 220 | """ |
| 221 | self._file.seek(offset) |
| 222 | bufr = self._file.read(calcsize(template)) |
| 223 | return unpack_from(template, bufr) |
| 224 | |
| 225 | |
| 226 | class _BaseTable(object): |