Return (occupied, deleted, high_water_mark) from the header slot.
(self)
| 925 | # ------------------------------------------------------------------ |
| 926 | |
| 927 | def _read_header(self): |
| 928 | """Return (occupied, deleted, high_water_mark) from the header slot.""" |
| 929 | occupied = struct.unpack_from(_OFFSET_FMT, self._mm, _HDR_OCCUPIED_OFF)[0] |
| 930 | deleted = struct.unpack_from(_OFFSET_FMT, self._mm, _HDR_DELETED_OFF)[0] |
| 931 | hwm = struct.unpack_from(_OFFSET_FMT, self._mm, _HDR_HWM_OFF)[0] |
| 932 | return occupied, deleted, hwm |
| 933 | |
| 934 | def _update_header(self, occupied_delta=0, deleted_delta=0, new_hwm=None): |
| 935 | """Update header counters in-place.""" |
no outgoing calls