Lines Matching refs:written
1992 int written; in xmlCharEncFirstLineInt() local
2000 written = out->size - out->use - 1; /* count '\0' */ in xmlCharEncFirstLineInt()
2017 if (toconv * 2 >= written) { in xmlCharEncFirstLineInt()
2019 written = out->size - out->use - 1; in xmlCharEncFirstLineInt()
2022 ret = xmlEncInputChunk(handler, &out->content[out->use], &written, in xmlCharEncFirstLineInt()
2025 out->use += written; in xmlCharEncFirstLineInt()
2034 toconv, written); in xmlCharEncFirstLineInt()
2038 toconv, written, in->use); in xmlCharEncFirstLineInt()
2046 toconv, written, in->use); in xmlCharEncFirstLineInt()
2099 size_t written; in xmlCharEncFirstLineInput() local
2115 written = xmlBufAvail(out) - 1; /* count '\0' */ in xmlCharEncFirstLineInput()
2131 if (toconv * 2 >= written) { in xmlCharEncFirstLineInput()
2133 written = xmlBufAvail(out) - 1; in xmlCharEncFirstLineInput()
2135 if (written > 360) in xmlCharEncFirstLineInput()
2136 written = 360; in xmlCharEncFirstLineInput()
2139 c_out = written; in xmlCharEncFirstLineInput()
2206 size_t written; in xmlCharEncInput() local
2224 written = xmlBufAvail(out); in xmlCharEncInput()
2225 if (written > 0) in xmlCharEncInput()
2226 written--; /* count '\0' */ in xmlCharEncInput()
2227 if (toconv * 2 >= written) { in xmlCharEncInput()
2229 written = xmlBufAvail(out); in xmlCharEncInput()
2230 if (written > 0) in xmlCharEncInput()
2231 written--; /* count '\0' */ in xmlCharEncInput()
2233 if ((written > 128 * 1024) && (flush == 0)) in xmlCharEncInput()
2234 written = 128 * 1024; in xmlCharEncInput()
2237 c_out = written; in xmlCharEncInput()
2306 int written; in xmlCharEncInFunc() local
2319 written = out->size - out->use -1; /* count '\0' */ in xmlCharEncInFunc()
2320 if (toconv * 2 >= written) { in xmlCharEncInFunc()
2322 written = out->size - out->use - 1; in xmlCharEncInFunc()
2324 ret = xmlEncInputChunk(handler, &out->content[out->use], &written, in xmlCharEncInFunc()
2327 out->use += written; in xmlCharEncInFunc()
2337 toconv, written); in xmlCharEncInFunc()
2344 toconv, written, in->use); in xmlCharEncInFunc()
2351 toconv, written, in->use); in xmlCharEncInFunc()
2371 return (written? written : ret); in xmlCharEncInFunc()
2396 size_t written; in xmlCharEncOutput() local
2412 written = xmlBufAvail(out); in xmlCharEncOutput()
2413 if (written > 0) in xmlCharEncOutput()
2414 written--; /* count '\0' */ in xmlCharEncOutput()
2421 c_out = written; in xmlCharEncOutput()
2441 if (toconv * 4 >= written) { in xmlCharEncOutput()
2443 written = xmlBufAvail(out) - 1; in xmlCharEncOutput()
2445 if (written > 256 * 1024) in xmlCharEncOutput()
2446 written = 256 * 1024; in xmlCharEncOutput()
2449 c_out = written; in xmlCharEncOutput()
2571 int written; in xmlCharEncOutFunc() local
2581 written = out->size - out->use; in xmlCharEncOutFunc()
2583 if (written > 0) in xmlCharEncOutFunc()
2584 written--; /* Gennady: count '/0' */ in xmlCharEncOutFunc()
2592 xmlEncOutputChunk(handler, &out->content[out->use], &written, in xmlCharEncOutFunc()
2594 out->use += written; in xmlCharEncOutFunc()
2609 if (toconv * 4 >= written) { in xmlCharEncOutFunc()
2611 written = out->size - out->use - 1; in xmlCharEncOutFunc()
2613 ret = xmlEncOutputChunk(handler, &out->content[out->use], &written, in xmlCharEncOutFunc()
2616 out->use += written; in xmlCharEncOutFunc()
2617 writtentot += written; in xmlCharEncOutFunc()
2620 if (written > 0) { in xmlCharEncOutFunc()
2637 toconv, written); in xmlCharEncOutFunc()
2649 toconv, written, in->use); in xmlCharEncOutFunc()
2684 written = out->size - out->use - 1; in xmlCharEncOutFunc()
2686 ret = xmlEncOutputChunk(handler, &out->content[out->use], &written, in xmlCharEncOutFunc()
2704 out->use += written; in xmlCharEncOutFunc()
2705 writtentot += written; in xmlCharEncOutFunc()
2822 int toconv = in->end - in->cur, written = 32000; in xmlByteConsumed() local
2828 written = 32000; in xmlByteConsumed()
2829 ret = xmlEncOutputChunk(handler, &convbuf[0], &written, in xmlByteConsumed()
2832 if (written > 0) in xmlByteConsumed()
2837 unused += written; in xmlByteConsumed()