void commit ( ByteBuffer bb ) { content . limit ( Math . max ( content . limit ( ) , bb . position ( ) ) ) ; boolean removed = refSet . removeItem ( content , bb ) ; assert removed ; }
called after writing to commit that writing succeeded up to position . If position > size the size is updated .