docs: def write_array(self, data):
          """Write numpy array to binary file."""
          try:
              data.tofile(self._fh)
          except Exception:
              # BytesIO
              self._fh.write(data.tostring())