MCPcopy Create free account
hub / github.com/coreutils/coreutils / translate_buffer

Function translate_buffer

src/dd.c:1721–1727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1719 to the NREAD bytes in BUF. */
1720
1721static void
1722translate_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

Callers 1

dd_copyFunction · 0.85

Calls 1

to_ucharFunction · 0.85

Tested by

no test coverage detected