def _read(self, fmt):
    result = struct.unpack_from(fmt, self._buffer, self._cursor)
    self._cursor += struct.calcsize(fmt)
    return result[0]
def _read(self, fmt):
    result = struct.unpack_from(fmt, self._buffer, self._cursor)
    self._cursor += struct.calcsize(fmt)
    return result[0]