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

Method GetUInt64

src/codec/flat_array.h:379–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377 }
378
379 bool GetUInt64(uint64_t* value) {
380 if (type_ != kUInt64) {
381 return false;
382 }
383 if (fsize_ == 0) {
384 return true;
385 }
386 if (offset_ + 8 > bsize_) {
387 return false;
388 }
389 memcpy(static_cast<void*>(value), buffer_, 8);
390 memrev64ifbe(static_cast<void*>(value));
391 buffer_ += 8;
392 offset_ += 8;
393 return true;
394 }
395
396 bool GetBool(bool* value) {
397 if (type_ != kBool) {

Callers 1

DecodeRowMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected