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

Method GetInt64

src/codec/flat_array.h:419–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417 }
418
419 bool GetInt64(int64_t* value) {
420 if (type_ != kInt64) {
421 return false;
422 }
423 if (fsize_ == 0) {
424 return true;
425 }
426 if (offset_ + 8 > bsize_) {
427 return false;
428 }
429 memcpy(static_cast<void*>(value), buffer_, 8);
430 memrev64ifbe(static_cast<void*>(value));
431 buffer_ += 8;
432 offset_ += 8;
433 return true;
434 }
435
436 bool GetUInt16(uint16_t* value) {
437 if (type_ != kUInt16) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected