Lines Matching defs:buf
77 BitOrderInvert(unsigned char *buf, int nbytes)
81 for (; --nbytes >= 0; buf++)
82 *buf = rev[*buf];
89 TwoByteSwap(unsigned char *buf, int nbytes)
91 for (; nbytes > 0; nbytes -= 2, buf += 2) {
94 c = buf[0];
95 buf[0] = buf[1];
96 buf[1] = c;
104 FourByteSwap(unsigned char *buf, int nbytes)
106 for (; nbytes > 0; nbytes -= 4, buf += 4) {
109 c = buf[0];
110 buf[0] = buf[3];
111 buf[3] = c;
113 c = buf[1];
114 buf[1] = buf[2];
115 buf[2] = c;