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

Method GetFloat

src/codec/flat_array.h:328–343  ·  view source on GitHub ↗

Get float can be only invoked once when after Next

Source from the content-addressed store, hash-verified

326
327 // Get float can be only invoked once when after Next
328 bool GetFloat(float* value) {
329 if (type_ != kFloat) {
330 return false;
331 }
332 if (fsize_ == 0) {
333 return true;
334 }
335 if (offset_ + 4 > bsize_) {
336 return false;
337 }
338 memcpy(static_cast<void*>(value), buffer_, 4);
339 memrev32ifbe(static_cast<void*>(value));
340 buffer_ += 4;
341 offset_ += 4;
342 return true;
343 }
344
345 bool GetUInt32(uint32_t* value) {
346 if (type_ != kUInt32) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected