| 84 | } |
| 85 | |
| 86 | __attribute__((unused)) static int PackInteger(const void *from, |
| 87 | uint32_t length, |
| 88 | bool unsigned_flag, void *to) { |
| 89 | if (from == nullptr || length < 1) { |
| 90 | return -1; |
| 91 | } |
| 92 | uchar *ptr = (uchar *)from; // NOLINT |
| 93 | uchar *uto = (uchar *)to; // NOLINT |
| 94 | CopyInteger(ptr, length, unsigned_flag, uto); |
| 95 | return 0; |
| 96 | } |
| 97 | |
| 98 | __attribute__((unused)) static int PackFloat(const void *from, void *to) { |
| 99 | if (from == nullptr) { |