| 291 | } |
| 292 | |
| 293 | void Encoder::_writeFloat(float n) { |
| 294 | endian::littleEndianFloat swapped = n; |
| 295 | auto buf = placeValue<false>(kFloatTag, 0, 2 + sizeof(swapped)); |
| 296 | buf[1] = 0; |
| 297 | memcpy(&buf[2], &swapped, sizeof(swapped)); |
| 298 | } |
| 299 | |
| 300 | #if 0 |
| 301 | bool Encoder::isIntRepresentable(float n) noexcept { |
nothing calls this directly
no outgoing calls
no test coverage detected