@Override
    public long skip(long n) {
        if (pos + n > count) {
            // noinspection AssignmentToMethodParameter
            n = (long) count - pos;
        }
        if (n < 0L) {
            return 0L;
        }
        pos += (int) n;
        return n;
    }
Special constructor fo creating InputStream over not fully filled array

@param buf   byte array
@param count number of filled elements
clickhouse-data/src/main/java/com/clickhouse/data/format/tsv/FastByteArrayInputStream.java