Lines Matching refs:outputpos
47 if ((a) < 0 || ((INT_MAX - outputpos)/((int)b)) < (a)) { \
53 outputpos += (a)*(b);
243 int outputpos = 0, outputsize = 0; in PHP_FUNCTION() local
444 outputpos -= arg; in PHP_FUNCTION()
446 if (outputpos < 0) { in PHP_FUNCTION()
448 outputpos = 0; in PHP_FUNCTION()
453 outputpos = arg; in PHP_FUNCTION()
457 if (outputsize < outputpos) { in PHP_FUNCTION()
458 outputsize = outputpos; in PHP_FUNCTION()
463 outputpos = 0; in PHP_FUNCTION()
479 memset(&ZSTR_VAL(output)[outputpos], (code == 'a' || code == 'Z') ? '\0' : ' ', arg); in PHP_FUNCTION()
480 memcpy(&ZSTR_VAL(output)[outputpos], ZSTR_VAL(str), in PHP_FUNCTION()
483 outputpos += arg; in PHP_FUNCTION()
496 outputpos--; in PHP_FUNCTION()
517 ZSTR_VAL(output)[++outputpos] = 0; in PHP_FUNCTION()
522 ZSTR_VAL(output)[outputpos] |= (n << nibbleshift); in PHP_FUNCTION()
526 outputpos++; in PHP_FUNCTION()
534 php_pack(&argv[currentarg++], 1, byte_map, &ZSTR_VAL(output)[outputpos]); in PHP_FUNCTION()
535 outputpos++; in PHP_FUNCTION()
552 php_pack(&argv[currentarg++], 2, map, &ZSTR_VAL(output)[outputpos]); in PHP_FUNCTION()
553 outputpos += 2; in PHP_FUNCTION()
561 php_pack(&argv[currentarg++], sizeof(int), int_map, &ZSTR_VAL(output)[outputpos]); in PHP_FUNCTION()
562 outputpos += sizeof(int); in PHP_FUNCTION()
579 php_pack(&argv[currentarg++], 4, map, &ZSTR_VAL(output)[outputpos]); in PHP_FUNCTION()
580 outputpos += 4; in PHP_FUNCTION()
599 php_pack(&argv[currentarg++], 8, map, &ZSTR_VAL(output)[outputpos]); in PHP_FUNCTION()
600 outputpos += 8; in PHP_FUNCTION()
609 memcpy(&ZSTR_VAL(output)[outputpos], &v, sizeof(v)); in PHP_FUNCTION()
610 outputpos += sizeof(v); in PHP_FUNCTION()
619 php_pack_copy_float(1, &ZSTR_VAL(output)[outputpos], v); in PHP_FUNCTION()
620 outputpos += sizeof(v); in PHP_FUNCTION()
629 php_pack_copy_float(0, &ZSTR_VAL(output)[outputpos], v); in PHP_FUNCTION()
630 outputpos += sizeof(v); in PHP_FUNCTION()
638 memcpy(&ZSTR_VAL(output)[outputpos], &v, sizeof(v)); in PHP_FUNCTION()
639 outputpos += sizeof(v); in PHP_FUNCTION()
648 php_pack_copy_double(1, &ZSTR_VAL(output)[outputpos], v); in PHP_FUNCTION()
649 outputpos += sizeof(v); in PHP_FUNCTION()
658 php_pack_copy_double(0, &ZSTR_VAL(output)[outputpos], v); in PHP_FUNCTION()
659 outputpos += sizeof(v); in PHP_FUNCTION()
665 memset(&ZSTR_VAL(output)[outputpos], '\0', arg); in PHP_FUNCTION()
666 outputpos += arg; in PHP_FUNCTION()
670 outputpos -= arg; in PHP_FUNCTION()
672 if (outputpos < 0) { in PHP_FUNCTION()
673 outputpos = 0; in PHP_FUNCTION()
678 if (arg > outputpos) { in PHP_FUNCTION()
679 memset(&ZSTR_VAL(output)[outputpos], '\0', arg - outputpos); in PHP_FUNCTION()
681 outputpos = arg; in PHP_FUNCTION()
688 ZSTR_VAL(output)[outputpos] = '\0'; in PHP_FUNCTION()
689 ZSTR_LEN(output) = outputpos; in PHP_FUNCTION()