File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 555555 <ClCompile Include =" $(ReactNativeDir)\ReactCommon\reactperflogger\reactperflogger\ReactPerfettoLogger.cpp" />
556556 <ClCompile Include =" $(ReactNativeDir)\ReactCommon\oscompat\OSCompatPosix.cpp" />
557557 <ClCompile Include =" $(ReactNativeDir)\ReactCommon\oscompat\OSCompatWindows.cpp" />
558+ <ClCompile Include =" $(ReactNativeDir)\ReactCommon\jsinspector-modern\network\NetworkReporter.cpp" />
558559 </ItemGroup >
559560 <ItemGroup >
560561 <None Include =" $(MSBuildThisFileDirectory)tracing\rnw.wprp" />
Original file line number Diff line number Diff line change 343343 <ClCompile Include =" $(ReactNativeDir)\ReactCommon\oscompat\OSCompatPosix.cpp" />
344344 <ClCompile Include =" $(ReactNativeDir)\ReactCommon\oscompat\OSCompatWindows.cpp" />
345345 <ClCompile Include =" $(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\platform\react\renderer\textlayoutmanager\WindowsTextLayoutManager.cpp" />
346+ <ClCompile Include =" $(ReactNativeDir)\ReactCommon\jsinspector-modern\network\NetworkReporter.cpp" />
346347 </ItemGroup >
347348 <ItemGroup >
348349 <Filter Include =" Source Files" >
Original file line number Diff line number Diff line change @@ -25,10 +25,12 @@ class StringBuilder {
2525 return m_ss.str ().length ();
2626 }
2727
28- void Finalize () {
28+ char * Finalize () {
2929 std::string str = m_ss.str ();
3030 memcpy (m_buffer, str.c_str (), str.length ());
31- }
31+ m_buffer[str.length ()] = ' \0 ' ; // IMPORTANT: Add null terminator
32+ return m_buffer; // Returns char* that will convert to std::string
33+ }
3234
3335 char *m_buffer;
3436 std::stringstream m_ss;
You can’t perform that action at this time.
0 commit comments