applyBound

abstract fun applyBound(buffer: ReadBuffer, decodedValue: T)

Narrows buffer's limit so that the bounded region ends after decodedValue bytes from the current position. Called after decode returns. Implementations typically call buffer.setLimit(buffer.position() + decodedValue.toInt()).