MCPcopy Create free account
hub / github.com/SpartanJ/eepp / formatBuffer

Method formatBuffer

src/eepp/core/string.cpp:1680–1689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1678}
1679
1680void String::formatBuffer( char* Buffer, int BufferSize, const char* format, ... ) {
1681 va_list args;
1682 va_start( args, format );
1683#ifdef EE_COMPILER_MSVC
1684 _vsnprintf_s( Buffer, BufferSize, BufferSize, format, args );
1685#else
1686 vsnprintf( Buffer, BufferSize - 1, format, args );
1687#endif
1688 va_end( args );
1689}
1690
1691String::View String::formatBuffer( String::StringBaseType* Buffer, int BufferSize,
1692 const char* format, ... ) {

Callers

nothing calls this directly

Calls 3

dataMethod · 0.45
sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected