MCPcopy Create free account
hub / github.com/RenderKit/embree / ImFormatStringToTempBuffer

Function ImFormatStringToTempBuffer

tutorials/common/imgui/imgui.cpp:1795–1804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1793#endif // #ifdef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS
1794
1795void ImFormatStringToTempBuffer(const char** out_buf, const char** out_buf_end, const char* fmt, ...)
1796{
1797 ImGuiContext& g = *GImGui;
1798 va_list args;
1799 va_start(args, fmt);
1800 int buf_len = ImFormatStringV(g.TempBuffer.Data, g.TempBuffer.Size, fmt, args);
1801 *out_buf = g.TempBuffer.Data;
1802 if (out_buf_end) { *out_buf_end = g.TempBuffer.Data + buf_len; }
1803 va_end(args);
1804}
1805
1806void ImFormatStringToTempBufferV(const char** out_buf, const char** out_buf_end, const char* fmt, va_list args)
1807{

Callers 1

BeginChildExMethod · 0.85

Calls 1

ImFormatStringVFunction · 0.85

Tested by

no test coverage detected