Zack Buhman 30092b9b15 input_keyboard: factor out font handling functions
I might later question this decision.

I liked how each "hardware" example was roughly one self-contained file. In the
"input_keyboard" case, this is no longer true.
2023-05-09 10:51:38 -07:00

11 lines
174 B
C++

#include <stdint.h>
template <typename T>
inline void copy(T * dst, const T * src, int32_t n) noexcept
{
while (n > 0) {
*dst++ = *src++;
n -= (sizeof (T));
}
}