MCPcopy Create free account
hub / github.com/OpenPrinting/cups / cups_swap

Function cups_swap

cups/raster-stream.c:1901–1920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1899 */
1900
1901static void
1902cups_swap(unsigned char *buf, /* I - Buffer to swap */
1903 size_t bytes) /* I - Number of bytes to swap */
1904{
1905 unsigned char even, odd; /* Temporary variables */
1906
1907
1908 bytes /= 2;
1909
1910 while (bytes > 0)
1911 {
1912 even = buf[0];
1913 odd = buf[1];
1914 buf[0] = odd;
1915 buf[1] = even;
1916
1917 buf += 2;
1918 bytes --;
1919 }
1920}
1921
1922
1923/*

Callers 1

_cupsRasterReadPixelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected