asReadOnly

fun <T> Buffer<T>.asReadOnly(): Buffer<T>

Convert this buffer to read-only buffer.