MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / SetFloat

Method SetFloat

src/codec/codec.cc:303–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303bool RowBuilder::SetFloat(uint32_t index, float val) {
304 if (!Check(index, ::fedb::type::kFloat)) return false;
305 SetField(index);
306 int8_t* ptr = buf_ + offset_vec_[index];
307 *(reinterpret_cast<float*>(ptr)) = val;
308 return true;
309}
310
311bool RowBuilder::AppendDouble(double val) {
312 if (!SetDouble(cnt_, val)) return false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected