MCPcopy Create free account
hub / github.com/MyGUI/mygui / convert_wchar_endian_swap

Function convert_wchar_endian_swap

UnitTests/TestApp/pugixml.cpp:1140–1144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1138
1139#ifdef PUGIXML_WCHAR_MODE
1140PUGI__FN void convert_wchar_endian_swap(wchar_t* result, const wchar_t* data, size_t length)
1141{
1142 for (size_t i = 0; i < length; ++i)
1143 result[i] = static_cast<wchar_t>(endian_swap(static_cast<wchar_selector<sizeof(wchar_t)>::type>(data[i])));
1144}
1145#endif
1146PUGI__NS_END
1147

Callers 2

convert_bufferFunction · 0.70

Calls 1

endian_swapFunction · 0.70

Tested by

no test coverage detected