Return the int value of the four bytes at the file position defined by self._base_offset + `base` + `offset`. If `base` is None, the long is read from the current position in the stream. The endian setting of this instance is used to interpret the byte layout of the
(self, base, offset=0)
| 33 | return self._read_int(fmt, base, offset) |
| 34 | |
| 35 | def read_long(self, base, offset=0): |
| 36 | """Return the int value of the four bytes at the file position defined by |
| 37 | self._base_offset + `base` + `offset`. |
| 38 | |
| 39 | If `base` is None, the long is read from the current position in the stream. The |
| 40 | endian setting of this instance is used to interpret the byte layout of the |
| 41 | long. |
| 42 | """ |
| 43 | fmt = "<L" if self._byte_order is LITTLE_ENDIAN else ">L" |
| 44 | return self._read_int(fmt, base, offset) |
| 45 | |
| 46 | def read_short(self, base, offset=0): |
| 47 | """Return the int value of the two bytes at the file position determined by |