| 1665 | } |
| 1666 | |
| 1667 | FORY_NOINLINE uint64_t read_compatible_uint64(ReadContext &ctx, |
| 1668 | uint32_t remote_type_id, |
| 1669 | std::string_view field) { |
| 1670 | uint64_t value = 0; |
| 1671 | if (read_uint_target(ctx, remote_type_id, |
| 1672 | static_cast<uint32_t>(TypeId::UINT64), field, |
| 1673 | std::numeric_limits<uint64_t>::max(), value)) { |
| 1674 | return value; |
| 1675 | } |
| 1676 | if (FORY_PREDICT_FALSE(ctx.has_error())) { |
| 1677 | return 0; |
| 1678 | } |
| 1679 | return read_converted<uint64_t>( |
| 1680 | ctx, remote_type_id, static_cast<uint32_t>(TypeId::UINT64), field, |
| 1681 | [](const ScalarValue &value, uint64_t &out) { |
| 1682 | return scalar_to_uint64(value, std::numeric_limits<uint64_t>::max(), |
| 1683 | out); |
| 1684 | }); |
| 1685 | } |
| 1686 | |
| 1687 | FORY_NOINLINE float16_t read_compatible_float16(ReadContext &ctx, |
| 1688 | uint32_t remote_type_id, |
no test coverage detected