Searched refs:MemAlloc (Results 1 - 8 of 8) sorted by relevance

/xsrc/external/mit/MesaLib.old/dist/src/imgui/
H A Dimgui.h681 IMGUI_API void* MemAlloc(size_t size);
1213 inline void reserve(int new_capacity) { if (new_capacity <= Capacity) return; T* new_data = (T*)ImGui::MemAlloc((size_t)new_capacity * sizeof(T)); if (Data) { memcpy(new_data, Data, (size_t)Size * sizeof(T)); ImGui::MemFree(Data); } Data = new_data; Capacity = new_capacity; }
1382 int MetricsActiveAllocations; // Number of active allocations, updated by MemAlloc/MemFree based on current context. May be off if you have multiple imgui contexts.
1526 // Helper: IM_NEW(), IM_PLACEMENT_NEW(), IM_DELETE() macros to call MemAlloc + Placement New, Placement Delete + MemFree
1533 #define IM_NEW(_TYPE) new(ImNewDummy(), ImGui::MemAlloc(sizeof(_TYPE))) _TYPE
H A Dimgui_draw.cpp132 #define STBTT_malloc(x,u) ((void)(u), ImGui::MemAlloc(x))
1530 TexPixelsRGBA32 = (unsigned int*)ImGui::MemAlloc((size_t)TexWidth * (size_t)TexHeight * 4);
1562 new_font_cfg.FontData = ImGui::MemAlloc(new_font_cfg.FontDataSize);
1647 unsigned char* buf_decompressed_data = (unsigned char *)ImGui::MemAlloc(buf_decompressed_size);
1659 void* compressed_ttf = ImGui::MemAlloc((size_t)compressed_ttf_size);
1964 atlas->TexPixelsAlpha8 = (unsigned char*)ImGui::MemAlloc(atlas->TexWidth * atlas->TexHeight);
H A Dimgui.cpp1307 void* buf = ImGui::MemAlloc(len + 1);
1318 dst = (char*)ImGui::MemAlloc(src_size);
1527 // Memory allocated with ImGui::MemAlloc(), must be freed by user using ImGui::MemFree()
1546 void* file_data = ImGui::MemAlloc(file_size + padding_bytes);
2953 void* ImGui::MemAlloc(size_t size) function in class:ImGui
9016 char* buf = (char*)ImGui::MemAlloc(ini_size + 1);
H A Dimgui_widgets.cpp3443 ImWchar* clipboard_filtered = (ImWchar*)MemAlloc((clipboard_len+1) * sizeof(ImWchar));
/xsrc/external/mit/MesaLib/dist/src/imgui/
H A Dimgui.h681 IMGUI_API void* MemAlloc(size_t size);
1213 inline void reserve(int new_capacity) { if (new_capacity <= Capacity) return; T* new_data = (T*)ImGui::MemAlloc((size_t)new_capacity * sizeof(T)); if (Data) { memcpy(new_data, Data, (size_t)Size * sizeof(T)); ImGui::MemFree(Data); } Data = new_data; Capacity = new_capacity; }
1382 int MetricsActiveAllocations; // Number of active allocations, updated by MemAlloc/MemFree based on current context. May be off if you have multiple imgui contexts.
1526 // Helper: IM_NEW(), IM_PLACEMENT_NEW(), IM_DELETE() macros to call MemAlloc + Placement New, Placement Delete + MemFree
1533 #define IM_NEW(_TYPE) new(ImNewDummy(), ImGui::MemAlloc(sizeof(_TYPE))) _TYPE
H A Dimgui_draw.cpp132 #define STBTT_malloc(x,u) ((void)(u), ImGui::MemAlloc(x))
1530 TexPixelsRGBA32 = (unsigned int*)ImGui::MemAlloc((size_t)TexWidth * (size_t)TexHeight * 4);
1562 new_font_cfg.FontData = ImGui::MemAlloc(new_font_cfg.FontDataSize);
1647 unsigned char* buf_decompressed_data = (unsigned char *)ImGui::MemAlloc(buf_decompressed_size);
1659 void* compressed_ttf = ImGui::MemAlloc((size_t)compressed_ttf_size);
1964 atlas->TexPixelsAlpha8 = (unsigned char*)ImGui::MemAlloc(atlas->TexWidth * atlas->TexHeight);
H A Dimgui.cpp1307 void* buf = ImGui::MemAlloc(len + 1);
1318 dst = (char*)ImGui::MemAlloc(src_size);
1527 // Memory allocated with ImGui::MemAlloc(), must be freed by user using ImGui::MemFree()
1546 void* file_data = ImGui::MemAlloc(file_size + padding_bytes);
2953 void* ImGui::MemAlloc(size_t size) function in class:ImGui
9016 char* buf = (char*)ImGui::MemAlloc(ini_size + 1);
H A Dimgui_widgets.cpp3443 ImWchar* clipboard_filtered = (ImWchar*)MemAlloc((clipboard_len+1) * sizeof(ImWchar));

Completed in 85 milliseconds