read

fun read(buffer: FriendlyByteBuf): ByteArray(source)

Validates the unread frame length before allocating and returns independently owned bytes.