def masses(self):
        """
        :returns: peak masses
        :rtype: list of floats
        """
        buf = ffi.new("double[]", self.size)
        ims.spectrum_masses(self.ptr, buf)
        return list(buf)