apply Bound
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()).