MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / CopyStringStreamToBuffer

Function CopyStringStreamToBuffer

src/openrct2/localisation/Formatting.cpp:681–689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

679 }
680
681 size_t CopyStringStreamToBuffer(char* buffer, size_t bufferLen, FormatBuffer& ss)
682 {
683 auto copyLen = std::min<size_t>(bufferLen - 1, ss.size());
684
685 std::copy(ss.data(), ss.data() + copyLen, buffer);
686 buffer[copyLen] = '\0';
687
688 return ss.size();
689 }
690
691 static void FormatArgumentAny(FormatBuffer& ss, FormatToken token, const FormatArg_t& value)
692 {

Callers 3

FormatStringAnyFunction · 0.85
FormatStringToBufferFunction · 0.85
FormatStringIDFunction · 0.85

Calls 2

sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected