Read float value from buffer. Sets error on bounds violation.
| 961 | |
| 962 | /// Read float value from buffer. Sets error on bounds violation. |
| 963 | FORY_ALWAYS_INLINE float read_float(Error &error) { |
| 964 | if (FORY_PREDICT_FALSE(!ensure_readable(4, error))) { |
| 965 | return 0.0f; |
| 966 | } |
| 967 | float value = load_unaligned<float>(data_ + reader_index_); |
| 968 | reader_index_ += 4; |
| 969 | return value; |
| 970 | } |
| 971 | |
| 972 | /// Read double value from buffer. Sets error on bounds violation. |
| 973 | FORY_ALWAYS_INLINE double read_double(Error &error) { |
no outgoing calls