| 51 | * Lowest-level serialization and conversion. |
| 52 | */ |
| 53 | template<typename Stream> inline void ser_writedata8(Stream &s, uint8_t obj) |
| 54 | { |
| 55 | s.write(AsBytes(Span{&obj, 1})); |
| 56 | } |
| 57 | template<typename Stream> inline void ser_writedata16(Stream &s, uint16_t obj) |
| 58 | { |
| 59 | obj = htole16(obj); |