| 54 | } |
| 55 | |
| 56 | inline void ReorderTranslationParams(const Translation *pTrans, cell_t *params) |
| 57 | { |
| 58 | cell_t new_params[MAX_TRANSLATE_PARAMS]; |
| 59 | for (unsigned int i = 0; i < pTrans->fmt_count; i++) |
| 60 | { |
| 61 | new_params[i] = params[pTrans->fmt_order[i]]; |
| 62 | } |
| 63 | memcpy(params, new_params, pTrans->fmt_count * sizeof(cell_t)); |
| 64 | } |
| 65 | |
| 66 | size_t Translate(char *buffer, |
| 67 | size_t maxlen, |