MCPcopy Create free account
hub / github.com/apache/arrow / FloatFromFlatbuffer

Function FloatFromFlatbuffer

cpp/src/arrow/ipc/metadata_internal.cc:146–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146Status FloatFromFlatbuffer(const flatbuf::FloatingPoint* float_data,
147 std::shared_ptr<DataType>* out) {
148 if (float_data->precision() == flatbuf::Precision::Precision_HALF) {
149 *out = float16();
150 } else if (float_data->precision() == flatbuf::Precision::Precision_SINGLE) {
151 *out = float32();
152 } else {
153 *out = float64();
154 }
155 return Status::OK();
156}
157
158Offset IntToFlatbuffer(FBB& fbb, int bitWidth, bool is_signed) {
159 return flatbuf::CreateInt(fbb, bitWidth, is_signed).Union();

Callers 1

Calls 2

OKFunction · 0.50
precisionMethod · 0.45

Tested by

no test coverage detected