Home
last modified time | relevance | path

Searched refs:memcpy (Results 1 – 25 of 366) sorted by relevance

12345678910>>...15

/PHP-8.4/main/
H A Dphp_ini_builder.c27 memcpy(b->value, src, length); in php_ini_builder_prepend()
35 memcpy(b->value + b->length, name, name_length); in php_ini_builder_unquoted()
40 memcpy(b->value + b->length, value, value_length); in php_ini_builder_unquoted()
50 memcpy(b->value + b->length, name, name_length); in php_ini_builder_quoted()
56 memcpy(b->value + b->length, value, value_length); in php_ini_builder_quoted()
74 memcpy(b->value + b->length, arg, len); in php_ini_builder_define()
H A Dfopen_wrappers.c185 memcpy(path_tmp, buf, ret);
382 memcpy(user, path_info + 2, length);
431 memcpy(ZSTR_VAL(filename), PG(doc_root), length);
560 memcpy(trypath, ptr, end-ptr);
570 memcpy(trypath, ptr, len);
572 memcpy(trypath+len+1, filename, filename_length+1);
610 memcpy(trypath, exec_fname, exec_fname_length + 1);
694 memcpy(pathbuf, path, path_length);
804 memcpy(cwd, relative_to, relative_to_len+1U);
819 memcpy(real_path, filepath, copy_len);
[all …]
/PHP-8.4/ext/sockets/
H A Dsockaddr_conv.c26 memcpy(&(sin6->sin6_addr.s6_addr), &(tmp.s6_addr), sizeof(struct in6_addr)); in php_set_inet6_addr()
52memcpy(&(sin6->sin6_addr.s6_addr), ((struct sockaddr_in6*)(addrinfo->ai_addr))->sin6_addr.s6_addr,… in php_set_inet6_addr()
108 memcpy(&(sin->sin_addr.s_addr), host_entry->h_addr_list[0], host_entry->h_length); in php_set_inet_addr()
122 memcpy(ss, &t, sizeof t); in php_set_inet46_addr()
132 memcpy(ss, &t, sizeof t); in php_set_inet46_addr()
H A Dconversions.c386 memcpy(field, &ival, sizeof(ival)); in from_zval_write_int()
405 memcpy(field, &ival, sizeof(ival)); in from_zval_write_uint32()
424 memcpy(field, &ival, sizeof(ival)); in from_zval_write_net_uint16()
443 memcpy(field, &ival, sizeof(ival)); in from_zval_write_sa_family()
499 memcpy(&ival, data, sizeof(ival)); in to_zval_read_int()
506 memcpy(&ival, data, sizeof(ival)); in to_zval_read_net_uint16()
513 memcpy(&ival, data, sizeof(ival)); in to_zval_read_sa_family()
521 memcpy(&ival, data, sizeof(ival)); in to_zval_read_unsigned()
528 memcpy(&ival, data, sizeof(ival)); in to_zval_read_uint32()
537 memcpy(&ival, data, sizeof(ival)); in to_zval_read_pid_t()
[all …]
/PHP-8.4/ext/bcmath/libbcmath/src/
H A Dconvert.c47 memcpy(&bytes, source, sizeof(bytes)); in bc_copy_and_toggle_bcd()
50 memcpy(dest, &bytes, sizeof(bytes)); in bc_copy_and_toggle_bcd()
76 memcpy(&tmp, str, sizeof(tmp)); in bc_parse_chunk_chars()
95 memcpy(&tmp, str, sizeof(tmp)); in bc_parse_chunk_chars()
160 memcpy(str, &digits, sizeof(digits)); in bc_write_bcd_representation()
H A Ddoaddsub.c88 memcpy(&n1bytes, n1ptr, sizeof(n1bytes)); in _bc_do_add()
89 memcpy(&n2bytes, n2ptr, sizeof(n2bytes)); in _bc_do_add()
122 memcpy(sumptr, &n1bytes, sizeof(n1bytes)); in _bc_do_add()
229 memcpy(&n1bytes, n1ptr, sizeof(n1bytes)); in _bc_do_sub()
230 memcpy(&n2bytes, n2ptr, sizeof(n2bytes)); in _bc_do_sub()
257 memcpy(diffptr, &n1bytes, sizeof(n1bytes)); in _bc_do_sub()
/PHP-8.4/ext/pcre/pcre2lib/
H A Dpcre2_serialize.c113 memcpy(bytes, memctl, sizeof(pcre2_memctl)); in pcre2_serialize_encode()
124 memcpy(dst_bytes, tables, TABLES_LENGTH); in pcre2_serialize_encode()
130 (void)memcpy(dst_bytes, (char *)re, re->blocksize); in pcre2_serialize_encode()
195 memcpy(tables, src_bytes, TABLES_LENGTH); in pcre2_serialize_decode()
208 memcpy(&blocksize, src_bytes + offsetof(pcre2_real_code, blocksize), in pcre2_serialize_decode()
230 memcpy(((uint8_t *)dst_re) + sizeof(pcre2_memctl), in pcre2_serialize_decode()
/PHP-8.4/ext/ffi/tests/
H A Dgh7867.phpt10 FFI::memcpy($value, implode('', range('a', 'z')), 26);
15 FFI::memcpy($slice, $value, 4);
20 FFI::memcpy($slice, $value + 4, 4);
H A D009.phpt2 FFI 009: memcpy(), memcmp(), memset() and sizeof()
16 FFI::memcpy($b, $a, FFI::sizeof($a));
/PHP-8.4/ext/date/lib/
H A Dparse_tz.c107 memcpy(tz->location.country_code, *tzf, 2); in read_php_preamble()
170 memcpy(&buffer, *tzf, sizeof(buffer)); in read_32bit_header()
208 memcpy(buffer, *tzf, sizeof(int64_t) * tz->bit64.timecnt); in read_64bit_transitions()
223 memcpy(cbuffer, *tzf, sizeof(unsigned char) * tz->bit64.timecnt); in read_64bit_transitions()
277 memcpy(tz->timezone_abbr, *tzf, sizeof(char) * tz->bit64.charcnt); in read_64bit_types()
371 memcpy(tz->posix_string, begin, *tzf - begin); in read_posix_string()
399 memcpy(tz->timezone_abbr + old_length, abbr, strlen(abbr)); in add_abbr()
451 memcpy(&buffer, *tzf, sizeof(buffer)); in read_location()
460 memcpy(tz->location.comments, *tzf, comments_len); in read_location()
643 memcpy(&buffer, *tzf, sizeof(buffer)); in read_64bit_header()
[all …]
/PHP-8.4/Zend/
H A Dzend_virtual_cwd.c273 memcpy(retval, state->cwd, *length); in virtual_getcwd_ex()
309 memcpy(buf, cwd, length+1); in virtual_getcwd()
410 memcpy(bucket->path, path, path_len+1); in realpath_cache_add()
620 memcpy(tmp, path, len+1); in tsrm_realpath_r()
866 memcpy(path, tmp, i-1); in tsrm_realpath_r()
902 memcpy(tmp, path, len+1); in tsrm_realpath_r()
923 memcpy(path, tmp, i-1); in tsrm_realpath_r()
971 memcpy(path+j, tmp_path, i+1); in tsrm_realpath_r()
976 memcpy(path+j, tmp+i, len-i+1); in tsrm_realpath_r()
985 memcpy(path+j, tmp+i, len-i+1); in tsrm_realpath_r()
[all …]
H A Dzend_vm_trace_handlers.h37 memcpy(buf, last, last_len); in zend_vm_trace()
39 memcpy(buf + last_len + 1, op, op_len + 1); in zend_vm_trace()
/PHP-8.4/ext/dom/lexbor/lexbor/core/
H A Dmraw.c17 memcpy(data, size, sizeof(size_t)); \
261 memcpy(begin, &new_size, sizeof(size_t)); in lexbor_mraw_realloc_tail()
285 memcpy(new_data, data, sizeof(uint8_t) * size); in lexbor_mraw_realloc_tail()
307 memcpy(begin, &size, sizeof(size_t)); in lexbor_mraw_realloc_tail()
322 memcpy(&size, begin, sizeof(size_t)); in lexbor_mraw_realloc()
360 memcpy(begin, &new_size, sizeof(size_t)); in lexbor_mraw_realloc()
383 memcpy(begin, data, sizeof(uint8_t) * size); in lexbor_mraw_realloc()
H A Dmraw.h75 memcpy(data, &size, sizeof(size_t)); in lexbor_mraw_data_size_set()
84 memcpy(data, src, size); in lexbor_mraw_dup()
H A Dswar.h40 memcpy(&bytes, data, sizeof(size_t)); in lexbor_swar_seek4()
70 memcpy(&bytes, data, sizeof(size_t)); in lexbor_swar_seek3()
H A Dserialize.c23 memcpy(str->data + str->length, data, length); in lexbor_serialize_copy_cb()
/PHP-8.4/sapi/phpdbg/
H A Dphpdbg_parser.y98 memcpy(&$$.file.name[0], $1.str, $1.len);
99 memcpy(&$$.file.name[$1.len], $2.str, $2.len);
108 memcpy(&$$.file.name[0], $1.str, $1.len);
109 memcpy(&$$.file.name[$1.len], $2.str, $2.len);
/PHP-8.4/main/streams/
H A Dfilter.c82 memcpy(bucket->buf, buf, buflen); in php_stream_bucket_new()
115 memcpy(retval, bucket, sizeof(*retval)); in php_stream_bucket_make_writeable()
118 memcpy(retval->buf, bucket->buf, retval->buflen); in php_stream_bucket_make_writeable()
135 memcpy((*left)->buf, in->buf, length); in php_stream_bucket_split()
142 memcpy((*right)->buf, in->buf + length, (*right)->buflen); in php_stream_bucket_split()
237 memcpy(wildname, filtername, n+1); in php_stream_filter_create()
372 memcpy(stream->readbuf + stream->writepos, bucket->buf, bucket->buflen); in php_stream_filter_append_ex()
454 memcpy(stream->readbuf, stream->readbuf + stream->readpos, stream->writepos - stream->readpos); in _php_stream_filter_flush()
463 memcpy(stream->readbuf + stream->writepos, bucket->buf, bucket->buflen); in _php_stream_filter_flush()
/PHP-8.4/ext/standard/
H A Dcrypt_sha256.c222 memcpy(&ctx->buffer[bytes], fillbuf, pad); in sha256_finish_ctx()
248 memcpy(&ctx->buffer[left_over], buffer, add); in sha256_process_bytes()
255 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~63], ctx->buflen); in sha256_process_bytes()
273 sha256_process_block(memcpy(ctx->buffer, buffer, 64), 64, ctx); in sha256_process_bytes()
287 memcpy(&ctx->buffer[left_over], buffer, len); in sha256_process_bytes()
292 memcpy(ctx->buffer, &ctx->buffer[64], left_over); in sha256_process_bytes()
377 …key = copied_key = memcpy(tmp_key + __alignof__(uint32_t) - (uintptr_t)tmp_key % __alignof__(uint3… in php_sha256_crypt_r()
383memcpy(tmp_salt + __alignof__(uint32_t) - (uintptr_t)tmp_salt % __alignof__ (uint32_t), salt, salt… in php_sha256_crypt_r()
452 memcpy(cp, temp_result, cnt); in php_sha256_crypt_r()
471 memcpy(cp, temp_result, cnt); in php_sha256_crypt_r()
H A Dcrypt_sha512.c253 memcpy(&ctx->buffer[bytes], fillbuf, pad); in sha512_finish_ctx()
279 memcpy(&ctx->buffer[left_over], buffer, add); in sha512_process_bytes()
287 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~127], in sha512_process_bytes()
307 sha512_process_block(memcpy(ctx->buffer, buffer, 128), 128, ctx); in sha512_process_bytes()
324 memcpy(&ctx->buffer[left_over], buffer, len); in sha512_process_bytes()
329 memcpy(ctx->buffer, &ctx->buffer[128], left_over); in sha512_process_bytes()
416memcpy(tmp_key + __alignof__(uint64_t) - (uintptr_t)tmp_key % __alignof__(uint64_t), key, key_len); in php_sha512_crypt_r()
421 …salt = copied_salt = memcpy(tmp_salt + __alignof__(uint64_t) - (uintptr_t)tmp_salt % __alignof__(u… in php_sha512_crypt_r()
491 memcpy(cp, temp_result, cnt); in php_sha512_crypt_r()
510 memcpy(cp, temp_result, cnt); in php_sha512_crypt_r()
/PHP-8.4/ext/mysqlnd/
H A Dmysqlnd_portability.h158 #define floatget(V,M) memcpy((char*) &(V),(char*) (M),sizeof(float))
252 #define float4get(V,M) memcpy((char*) &(V),(char*) (M),sizeof(float))
289 #define float8get(V,M) memcpy((char*) &(V),(char*) (M), sizeof(double))
290 #define float8store(T,V) memcpy((char*) (T),(char*) &(V), sizeof(double))
292 #define float8get(V,M) memcpy((char*) &(V),(char*) (M),sizeof(double))
293 #define float8store(T,V) memcpy((char*) (T),(char*) &(V),sizeof(double))
/PHP-8.4/win32/
H A Dregistry.c55 memcpy(reg_key, *key_name, main_key_len); in OpenPhpRegistryKey()
56 memcpy(reg_key + main_key_len, sub_key, sub_key_len + 1); in OpenPhpRegistryKey()
148 memcpy(new_path, path, path_len); in LoadDirectory()
150 memcpy(new_path+path_len+1, name, name_len+1); in LoadDirectory()
154 memcpy(new_path, name, name_len+1); in LoadDirectory()
/PHP-8.4/ext/zend_test/
H A Dobject_handlers.c286 memcpy(&donc_object_handlers, &std_object_handlers, sizeof(zend_object_handlers)); in zend_test_object_handlers_init()
292memcpy(&long_castable_no_operation_object_handlers, &std_object_handlers, sizeof(zend_object_handl… in zend_test_object_handlers_init()
297memcpy(&float_castable_no_operation_object_handlers, &std_object_handlers, sizeof(zend_object_hand… in zend_test_object_handlers_init()
302memcpy(&numeric_castable_no_operation_object_handlers, &std_object_handlers, sizeof(zend_object_ha… in zend_test_object_handlers_init()
307memcpy(&dimension_handlers_no_ArrayAccess_object_handlers, &std_object_handlers, sizeof(zend_objec… in zend_test_object_handlers_init()
/PHP-8.4/ext/hash/
H A Dhash_murmur.c159 memcpy(&copy_context->h, &orig_context->h, sizeof orig_context->h); in PHP_MURMUR3CCopy()
160 memcpy(&copy_context->carry, &orig_context->carry, sizeof orig_context->carry); in PHP_MURMUR3CCopy()
236 memcpy(&copy_context->h, &orig_context->h, sizeof orig_context->h); in PHP_MURMUR3FCopy()
237 memcpy(&copy_context->carry, &orig_context->carry, sizeof orig_context->carry); in PHP_MURMUR3FCopy()
H A Dhash_tiger.c154 memcpy(&context->buffer[56], &context->passed, sizeof(uint64_t)); in TigerFinalize()
197 memcpy(&context->buffer[context->length], input, len); in PHP_TIGERUpdate()
204 memcpy(&context->buffer[context->length], input, i); in PHP_TIGERUpdate()
211 memcpy(context->buffer, &input[i], 64); in PHP_TIGERUpdate()
216 memcpy(context->buffer, &input[i], r); in PHP_TIGERUpdate()

Completed in 65 milliseconds

12345678910>>...15