Lines Matching refs:inputpos
723 zend_long formatlen, inputpos, inputlen; in PHP_FUNCTION() local
738 inputpos = 0; in PHP_FUNCTION()
900 if (size != 0 && size != -1 && INT_MAX - size + 1 < inputpos) { in PHP_FUNCTION()
906 if ((inputpos + size) <= inputlen) { in PHP_FUNCTION()
910 zend_long len = inputlen - inputpos; /* Remaining string */ in PHP_FUNCTION()
919 add_assoc_stringl(return_value, n, &input[inputpos], len); in PHP_FUNCTION()
925 zend_long len = inputlen - inputpos; /* Remaining string */ in PHP_FUNCTION()
936 if (input[inputpos + len] != padn in PHP_FUNCTION()
937 && input[inputpos + len] != pads in PHP_FUNCTION()
938 && input[inputpos + len] != padt in PHP_FUNCTION()
939 && input[inputpos + len] != padc in PHP_FUNCTION()
940 && input[inputpos + len] != padl in PHP_FUNCTION()
945 add_assoc_stringl(return_value, n, &input[inputpos], len + 1); in PHP_FUNCTION()
953 len = inputlen - inputpos; /* Remaining string */ in PHP_FUNCTION()
964 if (input[inputpos + s] == pad) in PHP_FUNCTION()
969 add_assoc_stringl(return_value, n, &input[inputpos], len); in PHP_FUNCTION()
976 zend_long len = (inputlen - inputpos) * 2; /* Remaining */ in PHP_FUNCTION()
994 char cc = (input[inputpos + ipos] >> nibbleshift) & 0xf; in PHP_FUNCTION()
1018 int issigned = (type == 'c') ? (input[inputpos] & 0x80) : 0; in PHP_FUNCTION()
1019 zend_long v = php_unpack(&input[inputpos], 1, issigned, byte_map); in PHP_FUNCTION()
1033 issigned = input[inputpos + (machine_little_endian ? 1 : 0)] & 0x80; in PHP_FUNCTION()
1040 v = php_unpack(&input[inputpos], 2, issigned, map); in PHP_FUNCTION()
1051 issigned = input[inputpos + (machine_little_endian ? (sizeof(int) - 1) : 0)] & 0x80; in PHP_FUNCTION()
1054 v = php_unpack(&input[inputpos], sizeof(int), issigned, int_map); in PHP_FUNCTION()
1068 issigned = input[inputpos + (machine_little_endian ? 3 : 0)] & 0x80; in PHP_FUNCTION()
1070 issigned = input[inputpos] & 0x80; in PHP_FUNCTION()
1073 issigned = input[inputpos + 3] & 0x80; in PHP_FUNCTION()
1081 v |= php_unpack(&input[inputpos], 4, issigned, map); in PHP_FUNCTION()
1103 issigned = input[inputpos + (machine_little_endian ? 7 : 0)] & 0x80; in PHP_FUNCTION()
1105 issigned = input[inputpos] & 0x80; in PHP_FUNCTION()
1108 issigned = input[inputpos + 7] & 0x80; in PHP_FUNCTION()
1112 v = php_unpack(&input[inputpos], 8, issigned, map); in PHP_FUNCTION()
1132 v = php_pack_parse_float(1, &input[inputpos]); in PHP_FUNCTION()
1134 v = php_pack_parse_float(0, &input[inputpos]); in PHP_FUNCTION()
1136 memcpy(&v, &input[inputpos], sizeof(float)); in PHP_FUNCTION()
1150 v = php_pack_parse_double(1, &input[inputpos]); in PHP_FUNCTION()
1152 v = php_pack_parse_double(0, &input[inputpos]); in PHP_FUNCTION()
1154 memcpy(&v, &input[inputpos], sizeof(double)); in PHP_FUNCTION()
1165 if (inputpos < size) { in PHP_FUNCTION()
1166 inputpos = -size; in PHP_FUNCTION()
1177 inputpos = arg; in PHP_FUNCTION()
1186 inputpos += size; in PHP_FUNCTION()
1187 if (inputpos < 0) { in PHP_FUNCTION()
1191 inputpos = 0; in PHP_FUNCTION()
1197 …RNING, "Type %c: not enough input, need %d, have " ZEND_LONG_FMT, type, size, inputlen - inputpos); in PHP_FUNCTION()