private void writeUInt64DefList(List<Boolean> defined, List<Long> values, int type) throws IOException {
        int numDefined = 0;

        int i;
        for (i = 0; i < defined.size(); i++)
            if (defined.get(i))
                numDefined++;

        if (numDefined == 0)
            return;

        writeAlignedBoolHeader(defined, numDefined, type, 8);

        for (i = 0; i < defined.size(); i++)
            if (defined.get(i))
                writeUInt64(values.get(i) * 10000 + 116444736000002500L);
    }