Read double value from buffer. Sets error on bounds violation.
| 971 | |
| 972 | /// Read double value from buffer. Sets error on bounds violation. |
| 973 | FORY_ALWAYS_INLINE double read_double(Error &error) { |
| 974 | if (FORY_PREDICT_FALSE(!ensure_readable(8, error))) { |
| 975 | return 0.0; |
| 976 | } |
| 977 | double value = load_unaligned<double>(data_ + reader_index_); |
| 978 | reader_index_ += 8; |
| 979 | return value; |
| 980 | } |
| 981 | |
| 982 | /// Read float16_t from buffer. Sets error on bounds violation. |
| 983 | FORY_ALWAYS_INLINE float16_t read_f16(Error &error) { |
no outgoing calls