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

Method GetInt32

src/codec/flat_array.h:362–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360 }
361
362 bool GetInt32(int32_t* value) {
363 if (type_ != kInt32) {
364 return false;
365 }
366 if (fsize_ == 0) {
367 return true;
368 }
369 if (offset_ + 4 > bsize_) {
370 return false;
371 }
372 memcpy(static_cast<void*>(value), buffer_, 4);
373 memrev32ifbe(static_cast<void*>(value));
374 buffer_ += 4;
375 offset_ += 4;
376 return true;
377 }
378
379 bool GetUInt64(uint64_t* value) {
380 if (type_ != kUInt64) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected