Can you explain why you use the value `bb.position() - bb.remaining()`?