MCPcopy Create free account
hub / github.com/apache/fory / read_double

Method read_double

cpp/fory/util/buffer.h:973–980  ·  view source on GitHub ↗

Read double value from buffer. Sets error on bounds violation.

Source from the content-addressed store, hash-verified

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) {

Callers 2

test_bufferFunction · 0.95
test_bufferFunction · 0.95

Calls

no outgoing calls

Tested by 2

test_bufferFunction · 0.76
test_bufferFunction · 0.76