Lines Matching refs:inputpos

715 	zend_long formatlen, inputpos, inputlen;  in PHP_FUNCTION()  local
730 inputpos = 0; in PHP_FUNCTION()
890 if (size != 0 && size != -1 && INT_MAX - size + 1 < inputpos) { in PHP_FUNCTION()
896 if ((inputpos + size) <= inputlen) { in PHP_FUNCTION()
900 zend_long len = inputlen - inputpos; /* Remaining string */ in PHP_FUNCTION()
909 add_assoc_stringl(return_value, n, &input[inputpos], len); in PHP_FUNCTION()
915 zend_long len = inputlen - inputpos; /* Remaining string */ in PHP_FUNCTION()
926 if (input[inputpos + len] != padn in PHP_FUNCTION()
927 && input[inputpos + len] != pads in PHP_FUNCTION()
928 && input[inputpos + len] != padt in PHP_FUNCTION()
929 && input[inputpos + len] != padc in PHP_FUNCTION()
930 && input[inputpos + len] != padl in PHP_FUNCTION()
935 add_assoc_stringl(return_value, n, &input[inputpos], len + 1); in PHP_FUNCTION()
943 len = inputlen - inputpos; /* Remaining string */ in PHP_FUNCTION()
954 if (input[inputpos + s] == pad) in PHP_FUNCTION()
959 add_assoc_stringl(return_value, n, &input[inputpos], len); in PHP_FUNCTION()
966 zend_long len = (inputlen - inputpos) * 2; /* Remaining */ in PHP_FUNCTION()
984 char cc = (input[inputpos + ipos] >> nibbleshift) & 0xf; in PHP_FUNCTION()
1008 int issigned = (type == 'c') ? (input[inputpos] & 0x80) : 0; in PHP_FUNCTION()
1009 zend_long v = php_unpack(&input[inputpos], 1, issigned, byte_map); in PHP_FUNCTION()
1023 issigned = input[inputpos + (machine_little_endian ? 1 : 0)] & 0x80; in PHP_FUNCTION()
1030 v = php_unpack(&input[inputpos], 2, issigned, map); in PHP_FUNCTION()
1041 issigned = input[inputpos + (machine_little_endian ? (sizeof(int) - 1) : 0)] & 0x80; in PHP_FUNCTION()
1044 v = php_unpack(&input[inputpos], sizeof(int), issigned, int_map); in PHP_FUNCTION()
1058 issigned = input[inputpos + (machine_little_endian ? 3 : 0)] & 0x80; in PHP_FUNCTION()
1060 issigned = input[inputpos] & 0x80; in PHP_FUNCTION()
1063 issigned = input[inputpos + 3] & 0x80; in PHP_FUNCTION()
1071 v |= php_unpack(&input[inputpos], 4, issigned, map); in PHP_FUNCTION()
1093 issigned = input[inputpos + (machine_little_endian ? 7 : 0)] & 0x80; in PHP_FUNCTION()
1095 issigned = input[inputpos] & 0x80; in PHP_FUNCTION()
1098 issigned = input[inputpos + 7] & 0x80; in PHP_FUNCTION()
1102 v = php_unpack(&input[inputpos], 8, issigned, map); in PHP_FUNCTION()
1122 v = php_pack_parse_float(1, &input[inputpos]); in PHP_FUNCTION()
1124 v = php_pack_parse_float(0, &input[inputpos]); in PHP_FUNCTION()
1126 memcpy(&v, &input[inputpos], sizeof(float)); in PHP_FUNCTION()
1140 v = php_pack_parse_double(1, &input[inputpos]); in PHP_FUNCTION()
1142 v = php_pack_parse_double(0, &input[inputpos]); in PHP_FUNCTION()
1144 memcpy(&v, &input[inputpos], sizeof(double)); in PHP_FUNCTION()
1155 if (inputpos < size) { in PHP_FUNCTION()
1156 inputpos = -size; in PHP_FUNCTION()
1167 inputpos = arg; in PHP_FUNCTION()
1176 inputpos += size; in PHP_FUNCTION()
1177 if (inputpos < 0) { in PHP_FUNCTION()
1181 inputpos = 0; in PHP_FUNCTION()
1187 …RNING, "Type %c: not enough input, need %d, have " ZEND_LONG_FMT, type, size, inputlen - inputpos); in PHP_FUNCTION()