ReactOS 0.4.16-dev-715-ga1a169f
|
Go to the source code of this file.
Functions | |
static __inline bool | is_contraction_possible (size_t const old_size) throw () |
__declspec (noinline) void *__cdecl _expand_base(void *const block | |
_VALIDATE_RETURN_NOEXC (size<=_HEAP_MAXREQ, ENOMEM, nullptr) | |
if (new_block !=nullptr) return new _block | |
if (new_size<=old_size &&!is_contraction_possible(old_size)) return block | |
Variables | |
size_t const | size |
size_t const | old_size = static_cast<size_t>(HeapSize(__acrt_heap, 0, block)) |
size_t const | new_size = size == 0 ? 1 : size |
void * | new_block = HeapReAlloc(__acrt_heap, HEAP_REALLOC_IN_PLACE_ONLY, block, new_size) |
errno = __acrt_errno_from_os_error(GetLastError()) | |
return | nullptr |
__declspec | ( | noinline | ) | const |
Definition at line 26 of file expand.cpp.
errno = __acrt_errno_from_os_error(GetLastError()) |
Definition at line 77 of file expand.cpp.
void* new_block = HeapReAlloc(__acrt_heap, HEAP_REALLOC_IN_PLACE_ONLY, block, new_size) |
Definition at line 68 of file expand.cpp.
Definition at line 66 of file expand.cpp.
Referenced by _bdf_readstream(), add_index(), add_line_to_buffer(), add_name(), alloc_global_prop(), alloc_user_entry(), append_const_set(), append_data(), append_string_len(), BlockChainStream_UpdateIndexCache(), build_multi_string_value(), cff_index_get_pointers(), convert_dib_to_bmp(), convert_input_data(), d3d8_allocate_handle(), d3d_execute_buffer_SetExecuteData(), d3dx_pool_sync_shared_parameter(), ddraw_allocate_handle(), DECLARE_INTERFACE_(), dxbc_add_section(), find_arb_pshader(), find_arb_vshader(), find_glsl_domain_shader(), find_glsl_geometry_shader(), find_glsl_hull_shader(), find_glsl_pshader(), find_glsl_vshader(), ft_lzwstate_prefix_grow(), ft_lzwstate_stack_grow(), ft_mem_qrealloc(), ft_realloc(), ResizeManager::HandleSize(), ID3DXMatrixStackImpl_Pop(), ID3DXMatrixStackImpl_Push(), ITERATE_WriteRegistryValues(), LISTBOX_InitStorage(), mem_trim(), strstreambuf::overflow(), parse_security_url(), processRegLines(), ps_table_add(), realloc_dbg_nolock(), reallocate_t1_table(), record_parameter(), deque< _Tp, >::resize(), resize_mapping(), audio_membuffer::resize_mem_(), RtlSetEnvironmentVariable(), set_size(), shader_record_sample(), __crt_win32_buffer< Character, ResizePolicy >::size(), store_user_dirid(), strbuf_ensure_size(), streams_resize_table(), test_overwrite(), TestLockBytes_WriteAt(), TIM_SORT_RESIZE(), TransactedSnapshotImpl_FindFreeEntry(), TRIO_ARGS2(), wined3d_cs_st_require_space(), xmlParseCommentComplex(), and xmlParsePI().
return nullptr |
Definition at line 78 of file expand.cpp.
Referenced by _CrtCheckMemory(), _getdiskfree(), bsearch(), BtrfsDeviceAdd::DeviceAddDlgProc(), and throw().
Definition at line 65 of file expand.cpp.
Referenced by _aligned_offset_realloc(), _Function_class_(), add_func_desc(), build_multi_string_value(), d3dx_parse_value(), flush_changed_extent(), flush_fcb(), FT_Bitmap_Convert(), ft_lzwstate_prefix_grow(), ft_lzwstate_stack_grow(), is_contraction_possible(), ITERATE_WriteRegistryValues(), msvcrt_heap_realloc(), strstreambuf::overflow(), resize_device(), SmallBlockChainStream_GetNextFreeBlock(), test_query_process_vm(), and write_raw_resources().
Definition at line 59 of file expand.cpp.