// encodes count values to buffer internal virtual void EncodeValues(int count) { @out.Reset(buffer); long lastOrd = 0; for (int i = 0; i < count; i++) { //JAVA TO C# CONVERTER TODO TASK: Java iterators are only converted within the context of 'while' and 'for' loops: long ord = (long)ords.next(); @out.writeVLong(ord - lastOrd); lastOrd = ord; } }