| 1719 | to the NREAD bytes in BUF. */ |
| 1720 | |
| 1721 | static void |
| 1722 | translate_buffer (char *buf, idx_t nread) |
| 1723 | { |
| 1724 | char *cp = buf; |
| 1725 | for (idx_t i = nread; i; i--, cp++) |
| 1726 | *cp = trans_table[to_uchar (*cp)]; |
| 1727 | } |
| 1728 | |
| 1729 | /* Swap *NREAD bytes in BUF, which should have room for an extra byte |
| 1730 | after the end because the swapping is not in-place. If *SAVED_BYTE |