toList

fun <T> Buffer<T>.toList(): List<T>(source)

Returns a new List containing all elements of this buffer.