| 35 | |
| 36 | template <class T, uint8_t SIZE> |
| 37 | void WriteValue(const T& value) { |
| 38 | const uint8_t bytes = (SIZE >> 3) + ((SIZE & 7) != 0); |
| 39 | if (!EMPTY) { memcpy((void*)(buffer + index), &value, bytes); } |
| 40 | index += bytes; |
| 41 | } |
| 42 | |
| 43 | template <class T> |
| 44 | void WriteValue(const T& value, const uint8_t& size) { |
nothing calls this directly
no outgoing calls
no test coverage detected