protected fun validateLimit(bytes: Int, message: String? = null): Unit
Validates possibility to read or write from/into the stream according current value of limit. If operation is not possible LimitOutOfBoundsException are thrown.