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

Function swap2

Utilities/DICOMParser/DICOMFile.h:170–177  ·  view source on GitHub ↗

Swap the bytes in an array of unsigned shorts.

Source from the content-addressed store, hash-verified

168 // Swap the bytes in an array of unsigned shorts.
169 //
170 static void swap2(ushort* ip, ushort* op, int count)
171 {
172 while (count)
173 {
174 *op++ = swap2(*ip++);
175 count--;
176 }
177 }
178
179 //
180 // Swap the bytes in an array of unsigned longs.

Callers 3

ReadDoubleByteMethod · 0.85
ReadNextRecordMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected