public void skip(long count) throws IOException {assert count >= 0;if (ord + count > valueCount || ord + count < 0) {throw new EOFException();}final int skipBuffer = (int) Math.min(count, blockSize - off);off += skipBuffer;ord += skipBuffer;count -= skipBuffer;if (count == 0L) {return;}assert off == blockSize;while (count >= blockSize) {final int token = in.readByte() & 0xFF;final int bitsPerValue = token >>> BPV_SHIFT;if (bitsPerValue > 64) {throw new IOException("Corrupted");}if ((token & MIN_VALUE_EQUALS_0) == 0) {readVLong(in);}final long blockBytes = PackedInts.Format.PACKED.byteCount(packedIntsVersion, blockSize, bitsPerValue);skipBytes(blockBytes);ord += blockSize;count -= blockSize;}if (count == 0L) {return;}assert count < blockSize;refill();ord += count;off += count;}

public void Skip(long count){Debug.Assert(count >= 0);if (ord + count > valueCount || ord + count < 0){throw new System.IO.EndOfStreamException();}int skipBuffer = (int)Math.Min(count, blockSize - off);off += skipBuffer;ord += skipBuffer;count -= skipBuffer;if (count == 0L){return;}Debug.Assert(off == blockSize);while (count >= blockSize){int token = @in.ReadByte() & 0xFF;int bitsPerValue = (int)((uint)token >> AbstractBlockPackedWriter.BPV_SHIFT);if (bitsPerValue > 64){throw new System.IO.IOException("Corrupted");}if ((token & AbstractBlockPackedWriter.MIN_VALUE_EQUALS_0) == 0){ReadVInt64(@in);}long blockBytes = PackedInt32s.Format.PACKED.ByteCount(packedIntsVersion, blockSize, bitsPerValue);SkipBytes(blockBytes);ord += blockSize;count -= blockSize;}if (count == 0L){return;}Debug.Assert(count < blockSize);Refill();ord += count;off += (int)count;}
