/dports/print/qpdf/qpdf-10.5.0/libtests/ |
H A D | qintc.cc | 39 QIntC::range_check(a, b); in try_range_check_real() 62 QIntC::range_check_substract(a, b); in try_range_check_subtract_real() 89 try_convert(true, QIntC::to_int<int32_t>, i1); in main() 90 try_convert(true, QIntC::to_uint<uint32_t>, u1); in main() 91 try_convert(false, QIntC::to_int<uint32_t>, u1); in main() 92 try_convert(false, QIntC::to_uint<int32_t>, i1); in main() 93 try_convert(false, QIntC::to_int<uint64_t>, ul1); in main() 94 try_convert(true, QIntC::to_int<uint64_t>, ul2); in main() 99 try_convert(true, QIntC::to_char<int32_t>, i2); in main() 102 try_convert(true, QIntC::to_uchar<char>, c2); in main() [all …]
|
H A D | predictors.cc | 93 QIntC::to_uint(columns), in main() 94 QIntC::to_uint(bits_per_sample), in main() 95 QIntC::to_uint(samples_per_pixel)); in main()
|
H A D | rc4.cc | 42 unsigned int hexkeylen = QIntC::to_uint(strlen(hexkey)); in main() 62 Pl_RC4* rc4 = new Pl_RC4("rc4", out, key, QIntC::to_int(keylen), 64U); in main()
|
/dports/print/qpdf/qpdf-10.5.0/libtests/qtest/qintc/ |
H A D | qintc.out | 1 QIntC::to_int<int32_t>(i1): -1153374643 -1153374643 PASSED 2 QIntC::to_uint<uint32_t>(u1): 3141592653 3141592653 PASSED 3 QIntC::to_int<uint32_t>(u1): integer out of range converting 3141592653 from a 4-byte unsigned type… 6 QIntC::to_int<uint64_t>(ul2): 12345 12345 PASSED 7 QIntC::to_uint<uint64_t>(ul2): 12345 12345 PASSED 8 QIntC::to_offset<uint32_t>(u1): 3141592653 3141592653 PASSED 9 QIntC::to_offset<int32_t>(i1): -1153374643 -1153374643 PASSED 11 QIntC::to_char<int32_t>(i2): 81 Q PASSED 12 QIntC::to_uchar<int32_t>(i2): 81 Q PASSED 14 QIntC::to_uchar<char>(c2): W W PASSED [all …]
|
/dports/print/qpdf/qpdf-10.5.0/qpdf/ |
H A D | fix-qdf.cc | 117 offset += QIntC::to_offset(line.length()); in processLines() 265 unsigned int type = QIntC::to_uint(x.getType()); in processLines() 268 f1 = QIntC::to_ulonglong(x.getOffset()); in processLines() 318 offset -= QIntC::to_offset(line.length()); in processLines() 319 offset += QIntC::to_offset(new_length.length()); in processLines() 395 iter -= QIntC::to_offset(first); in writeOstream() 400 auto offset_adjust = QIntC::to_offset(offsets.size()); in writeOstream() 402 stream_length += QIntC::to_size(offset_adjust); in writeOstream() 412 offset_adjust += QIntC::to_offset(dict_data.length()); in writeOstream() 423 offset -= QIntC::to_offset(o.length()); in writeOstream() [all …]
|
/dports/print/qpdf/qpdf-10.5.0/libqpdf/ |
H A D | QPDF_Array.cc | 75 return QIntC::to_int(this->elements.size()); in getNItems() 81 if ((n < 0) || (n >= QIntC::to_int(elements.size()))) in getItem() 86 return this->elements.at(QIntC::to_size(n)); in getItem() 102 this->elements.setAt(QIntC::to_size(n), oh); in setItem() 120 if ((at < 0) || (at > QIntC::to_int(this->elements.size()))) in insertItem() 125 this->elements.insert(QIntC::to_size(at), item); in insertItem() 137 this->elements.erase(QIntC::to_size(at)); in eraseItem()
|
H A D | SF_FlateLzwDecode.cc | 111 QIntC::to_uint(this->columns), in getDecodePipeline() 112 QIntC::to_uint(this->colors), in getDecodePipeline() 113 QIntC::to_uint(this->bits_per_component)); in getDecodePipeline() 122 QIntC::to_uint(this->columns), in getDecodePipeline() 123 QIntC::to_uint(this->colors), in getDecodePipeline() 124 QIntC::to_uint(this->bits_per_component)); in getDecodePipeline()
|
H A D | BufferInputSource.cc | 16 max_offset(buf ? QIntC::to_offset(buf->getSize()) : 0) in Members() 35 this->m->max_offset = QIntC::to_offset(this->m->buf->getSize()); in BufferInputSource() 114 QIntC::range_check(this->m->max_offset, offset); in seek() 119 QIntC::range_check(this->m->cur_offset, offset); in seek() 158 QIntC::to_size(end_pos - this->m->cur_offset), length); in read() 160 this->m->cur_offset += QIntC::to_offset(len); in read()
|
H A D | InputSource.cc | 46 size_t line_length = QIntC::to_size(eol - offset); in readLine() 128 bytes_read - QIntC::to_size(p - buf)))) != 0) in findFirst() 139 QIntC::to_size((p - buf) + (buf_offset - offset)); in findFirst() 211 cur_len = len - QIntC::to_size((cur_offset - offset)); in findLast()
|
H A D | Pl_Flate.cc | 41 zstream.avail_out = QIntC::to_uint(out_bufsize); in Members() 66 m(new Members(QIntC::to_size(out_bufsize_int), action)) in Pl_Flate() 125 zstream.avail_in = QIntC::to_uint(len); in handleData() 208 QIntC::to_ulong(this->m->out_bufsize - zstream.avail_out); in handleData() 213 zstream.avail_out = QIntC::to_uint(this->m->out_bufsize); in handleData()
|
H A D | QUtil.cc | 382 return QIntC::to_int(string_to_ll(str)); in string_to_int() 419 return QIntC::to_uint(string_to_ull(str)); in string_to_uint() 540 return QIntC::to_offset(ftello(stream)); in tell() 542 return QIntC::to_offset(ftello64(stream)); in tell() 547 return QIntC::to_offset(ftell(stream)); in tell() 730 ch = QIntC::to_char(ch - 'A' + 10); in hex_decode() 738 ch = QIntC::to_char(ch - '0'); in hex_decode() 1027 while (uval > QIntC::to_ulong(maxval)) in toUTF8() 1222 size = QIntC::to_size(QUtil::tell(f)); in read_file_into_memory() 2343 QIntC::to_ushort( in utf16_to_utf8() [all …]
|
H A D | Pl_DCT.cc | 233 size_t to_skip = QIntC::to_size(num_bytes); in skip_buffer_input_data() 304 QIntC::to_uint(cinfo->input_components); in compress() 306 QIntC::to_size(cinfo->image_height) * in compress() 307 QIntC::to_size(cinfo->image_width) * in compress() 308 QIntC::to_size(cinfo->input_components); in compress() 350 QIntC::to_uint(cinfo->output_components); in decompress()
|
H A D | BitStream.cc | 20 if (QIntC::to_uint(nbytes) > static_cast<unsigned int>(-1) / 8) in reset() 55 QIntC::to_uint( in getBitsInt()
|
H A D | QPDFCrypto_gnutls.cc | 86 key_len = QIntC::to_int( in RC4_init() 91 key.size = QIntC::to_uint(key_len); in RC4_init() 231 cipher_key.size = QIntC::to_uint(gnutls_cipher_get_key_size(alg)); in rijndael_init()
|
H A D | QPDF_encryption.cc | 133 size_t password_bytes = std::min(QIntC::to_size(key_bytes), in pad_or_truncate_password_V4() 196 QIntC::to_size(key_len)); in iterate_md5_digest() 208 true, new unsigned char[QIntC::to_size(key_len)]); in iterate_rc4() 217 RC4 rc4(key, QIntC::to_int(key_len)); in iterate_rc4() 234 QIntC::to_uint(key.length())); in process_with_aes() 334 if (ch <= QIntC::to_uint(round_number - 32)) in hash_V5() 447 QIntC::to_size(key_len)); in compute_encryption_key_from_password() 470 int key_len = std::min(QIntC::to_int(sizeof(digest)), in compute_O_rc4_key() 489 pad_short_parameter(k1, QIntC::to_size(data.getLengthBytes())); in compute_O_value() 506 pad_short_parameter(k1, QIntC::to_size(data.getLengthBytes())); in compute_U_value_R2() [all …]
|
H A D | QPDFFormFieldObjectHelper.cc | 265 result = QIntC::to_int(fv.getIntValue()); in getQuadding() 707 int wanted_first = QIntC::to_int(found_idx) - 1; in writeAppearance() 708 int wanted_last = QIntC::to_int(found_idx + max_rows) - 2; in writeAppearance() 716 while (wanted_last >= QIntC::to_int(nopt)) in writeAppearance() 726 highlight_idx = found_idx - QIntC::to_size(wanted_first); in writeAppearance() 727 for (size_t i = QIntC::to_size(wanted_first); in writeAppearance() 728 i <= QIntC::to_size(wanted_last); ++i) in writeAppearance()
|
H A D | QPDF_pages.cc | 258 (pos == QIntC::to_int(this->m->all_pages.size())) ? 1 : // at end in insertPage() 270 assert ((pos >= 0) && (QIntC::to_size(pos) <= this->m->all_pages.size())); in insertPage() 290 (pos == QIntC::to_int(this->m->all_pages.size() - 1)) ? 1 : // end in removePage()
|
H A D | Pl_LZWDecoder.cc | 148 last_size = QIntC::to_uint(b.getSize()); in addToTable() 193 unsigned int table_size = QIntC::to_uint(table.size()); in handleCode()
|
H A D | QPDFWriter.cc | 1138 QIntC::to_int(this->m->cur_data_key.length())); in pushEncryptionFilter() 1931 QIntC::to_int(this->m->cur_data_key.length())); in unparseObject() 2665 QIntC::to_int( in doWriteSetup() 2694 this->m->events_expected = QIntC::to_int( in write() 3132 QIntC::to_int(part7.size() + part8.size() + part9.size()); in writeLinearized() 3164 this->m->next_objid += QIntC::to_int(part4.size()); in writeLinearized() 3172 this->m->next_objid += QIntC::to_int(part6.size()); in writeLinearized() 3279 int npages = QIntC::to_int(pages.size()); in writeLinearized() 3354 writePad(QIntC::to_int(first_xref_end - endpos)); in writeLinearized() 3440 QIntC::to_int(second_xref_end + hint_length - in writeLinearized() [all …]
|
H A D | QPDF_linearization.cc | 29 for (size_t i = 0; i < QIntC::to_size(nitems); ++i) in load_vector_int() 37 if (QIntC::to_int(vec.size()) != nitems) in load_vector_int() 54 for (size_t i1 = 0; i1 < QIntC::to_size(nitems1); ++i1) in load_vector_vector() 59 bit_stream.getBitsInt(QIntC::to_size(bits_wanted))); in load_vector_vector() 155 (QIntC::to_int(floor(linkey.getNumericValue())) == 1))) in isLinearized() 2070 if (soe.size() != QIntC::to_size(cso.nshared_total)) in calculateHSharedObject() 2131 for (size_t i = 0; i < QIntC::to_size(nitems); ++i) in write_vector_int() 2133 w.writeBits(QIntC::to_ulonglong(vec.at(i).*field), in write_vector_int() 2134 QIntC::to_size(bits)); in write_vector_int() 2149 for (size_t i1 = 0; i1 < QIntC::to_size(nitems1); ++i1) in write_vector_vector() [all …]
|
H A D | QPDFCrypto_openssl.cc | 95 check_openssl(RAND_bytes(data, QIntC::to_int(len))); in provideRandomData() 187 key_len = QIntC::to_int( in RC4_init()
|
H A D | QPDFXRefEntry.cc | 50 return QIntC::to_int(this->field1); in getObjStreamNumber()
|
/dports/print/qpdf/qpdf-10.5.0/examples/ |
H A D | pdf-parse-content.cc | 85 if ((pageno < 1) || (QIntC::to_size(pageno) > pages.size())) in main() 90 QPDFPageObjectHelper& page = pages.at(QIntC::to_size(pageno-1)); in main()
|
H A D | pdf-custom-filter.cc | 313 QIntC::to_longlong(out->getSize()))); in maybeReplace() 316 this->keys[og] = QIntC::to_uchar( in maybeReplace() 317 (og.getObj() * QIntC::to_int(out->getSize())) & 0xff); in maybeReplace()
|
H A D | pdf-create.cc | 115 QIntC::to_uint(width), QIntC::to_uint(getHeight()), in provideStreamData() 116 QIntC::to_int(stripes[0].length()), j_color_space); in provideStreamData() 162 return QPDFObjectHandle::newInteger(QIntC::to_int(val)); in newInteger()
|