Lines Matching refs:outputpos
50 if ((a) < 0 || ((INT_MAX - outputpos)/((int)b)) < (a)) { \
56 outputpos += (a)*(b);
240 int outputpos = 0, outputsize = 0; in PHP_FUNCTION() local
436 outputpos -= arg; in PHP_FUNCTION()
438 if (outputpos < 0) { in PHP_FUNCTION()
440 outputpos = 0; in PHP_FUNCTION()
445 outputpos = arg; in PHP_FUNCTION()
449 if (outputsize < outputpos) { in PHP_FUNCTION()
450 outputsize = outputpos; in PHP_FUNCTION()
455 outputpos = 0; in PHP_FUNCTION()
471 memset(&ZSTR_VAL(output)[outputpos], (code == 'a' || code == 'Z') ? '\0' : ' ', arg); in PHP_FUNCTION()
472 memcpy(&ZSTR_VAL(output)[outputpos], ZSTR_VAL(str), in PHP_FUNCTION()
475 outputpos += arg; in PHP_FUNCTION()
488 outputpos--; in PHP_FUNCTION()
509 ZSTR_VAL(output)[++outputpos] = 0; in PHP_FUNCTION()
514 ZSTR_VAL(output)[outputpos] |= (n << nibbleshift); in PHP_FUNCTION()
518 outputpos++; in PHP_FUNCTION()
526 php_pack(&argv[currentarg++], 1, byte_map, &ZSTR_VAL(output)[outputpos]); in PHP_FUNCTION()
527 outputpos++; in PHP_FUNCTION()
544 php_pack(&argv[currentarg++], 2, map, &ZSTR_VAL(output)[outputpos]); in PHP_FUNCTION()
545 outputpos += 2; in PHP_FUNCTION()
553 php_pack(&argv[currentarg++], sizeof(int), int_map, &ZSTR_VAL(output)[outputpos]); in PHP_FUNCTION()
554 outputpos += sizeof(int); in PHP_FUNCTION()
571 php_pack(&argv[currentarg++], 4, map, &ZSTR_VAL(output)[outputpos]); in PHP_FUNCTION()
572 outputpos += 4; in PHP_FUNCTION()
591 php_pack(&argv[currentarg++], 8, map, &ZSTR_VAL(output)[outputpos]); in PHP_FUNCTION()
592 outputpos += 8; in PHP_FUNCTION()
601 memcpy(&ZSTR_VAL(output)[outputpos], &v, sizeof(v)); in PHP_FUNCTION()
602 outputpos += sizeof(v); in PHP_FUNCTION()
611 php_pack_copy_float(1, &ZSTR_VAL(output)[outputpos], v); in PHP_FUNCTION()
612 outputpos += sizeof(v); in PHP_FUNCTION()
621 php_pack_copy_float(0, &ZSTR_VAL(output)[outputpos], v); in PHP_FUNCTION()
622 outputpos += sizeof(v); in PHP_FUNCTION()
630 memcpy(&ZSTR_VAL(output)[outputpos], &v, sizeof(v)); in PHP_FUNCTION()
631 outputpos += sizeof(v); in PHP_FUNCTION()
640 php_pack_copy_double(1, &ZSTR_VAL(output)[outputpos], v); in PHP_FUNCTION()
641 outputpos += sizeof(v); in PHP_FUNCTION()
650 php_pack_copy_double(0, &ZSTR_VAL(output)[outputpos], v); in PHP_FUNCTION()
651 outputpos += sizeof(v); in PHP_FUNCTION()
657 memset(&ZSTR_VAL(output)[outputpos], '\0', arg); in PHP_FUNCTION()
658 outputpos += arg; in PHP_FUNCTION()
662 outputpos -= arg; in PHP_FUNCTION()
664 if (outputpos < 0) { in PHP_FUNCTION()
665 outputpos = 0; in PHP_FUNCTION()
670 if (arg > outputpos) { in PHP_FUNCTION()
671 memset(&ZSTR_VAL(output)[outputpos], '\0', arg - outputpos); in PHP_FUNCTION()
673 outputpos = arg; in PHP_FUNCTION()
680 ZSTR_VAL(output)[outputpos] = '\0'; in PHP_FUNCTION()
681 ZSTR_LEN(output) = outputpos; in PHP_FUNCTION()