@staticmethod
def readBuffer(buffer):
    """
        Reads buffer values and returns them as a list. This can be done more
        quickly by calling :attr:`buffer.readings` but such a call may fail due
        to I/O limitations of the keithley if the returned list is too long.

        :param buffer: A keithley buffer instance.

        :returns: A list with buffer readings.
        :rtype: list
        """
    list_out = []
    for i in range(0, int(buffer.n)):
        list_out.append(buffer.readings[i + 1])
    return list_out
