MCPcopy Create free account
hub / github.com/Kitware/VTK / SwapByteOrder4

Function SwapByteOrder4

IO/Image/vtkSEPReader.cxx:35–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33static constexpr std::size_t DataFormatSize[] = { 4, 4, 8 };
34
35inline void SwapByteOrder4(char* data)
36{
37 std::swap(data[0], data[3]);
38 std::swap(data[1], data[2]);
39}
40inline void SwapByteOrder8(char* data)
41{
42 std::swap(data[0], data[7]);

Callers 1

ReadDataMethod · 0.85

Calls 1

swapFunction · 0.50

Tested by

no test coverage detected