MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / FormatString

Function FormatString

python/common/String.cpp:25–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace nvcvpy::util {
24
25std::string FormatString(const char *fmt, ...)
26{
27 va_list va;
28 va_start(va, fmt);
29
30 char buffer[1024];
31 vsnprintf(buffer, sizeof(buffer) - 1, fmt, va);
32 buffer[sizeof(buffer) - 1] = '\0'; // better be safe against truncation
33
34 va_end(va);
35
36 return buffer;
37}
38
39} // namespace nvcvpy::util

Callers 15

WarpPerspectiveIntoFunction · 0.85
CopyMakeBorderIntoFunction · 0.85
VarShapeCopyMakeBorderFunction · 0.85
WarpAffineIntoFunction · 0.85
WarpAffineVarShapeIntoFunction · 0.85
FillNVCVTensorDataFunction · 0.85
FillNVCVArrayDataFunction · 0.85
FindDTypeFunction · 0.85
ExtractBufferImageInfoFunction · 0.85

Calls

no outgoing calls

Tested by 2

WarpPerspectiveIntoFunction · 0.68