MCPcopy Create free account
hub / github.com/Tencent/rapidjson / itoa_Writer_StringBuffer

Function itoa_Writer_StringBuffer

test/perftest/misctest.cpp:792–806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790
791template <typename Writer>
792void itoa_Writer_StringBuffer() {
793 size_t length = 0;
794
795 rapidjson::StringBuffer sb;
796 Writer writer(sb);
797
798 for (size_t i = 0; i < kItoaTrialCount; i++) {
799 for (size_t j = 0; j < randvalCount; j++) {
800 writer.WriteInt(randval[j]);
801 length += sb.GetSize();
802 sb.Clear();
803 }
804 }
805 OUTPUT_LENGTH(length);
806}
807
808template <typename Writer>
809void itoa_Writer_InsituStringStream() {

Callers

nothing calls this directly

Calls 3

GetSizeMethod · 0.80
WriteIntMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected