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

Method GetInt16

src/codec/flat_array.h:453–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451 }
452
453 bool GetInt16(int16_t* value) {
454 if (type_ != kInt16) {
455 return false;
456 }
457 if (fsize_ == 0) {
458 return true;
459 }
460 if (offset_ + 2 > bsize_) {
461 return false;
462 }
463 memcpy(static_cast<void*>(value), buffer_, 2);
464 memrev16ifbe(static_cast<void*>(value));
465 buffer_ += 2;
466 offset_ += 2;
467 return true;
468 }
469
470 bool GetDate(uint64_t* date) {
471 if (type_ != kDate) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected