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

Method GetTimestamp

src/codec/flat_array.h:487–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485 }
486
487 bool GetTimestamp(uint64_t* ts) {
488 if (type_ != kTimestamp) {
489 return false;
490 }
491 if (fsize_ == 0) {
492 return true;
493 }
494 if (offset_ + 8 > bsize_) {
495 return false;
496 }
497 memcpy(static_cast<void*>(ts), buffer_, 8);
498 memrev64ifbe(static_cast<void*>(ts));
499 buffer_ += 8;
500 offset_ += 8;
501 return true;
502 }
503
504 bool GetDouble(double* value) {
505 if (type_ != kDouble) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected