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

Method GetDate

src/codec/flat_array.h:470–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468 }
469
470 bool GetDate(uint64_t* date) {
471 if (type_ != kDate) {
472 return false;
473 }
474 if (fsize_ == 0) {
475 return true;
476 }
477 if (offset_ + 8 > bsize_) {
478 return false;
479 }
480 memcpy(static_cast<void*>(date), buffer_, 8);
481 memrev64ifbe(static_cast<void*>(date));
482 buffer_ += 8;
483 offset_ += 8;
484 return true;
485 }
486
487 bool GetTimestamp(uint64_t* ts) {
488 if (type_ != kTimestamp) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected