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

Function PackInteger

src/codec/memcomparable_format.h:86–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86__attribute__((unused)) static int PackInteger(const void *from,
87 uint32_t length,
88 bool unsigned_flag, void *to) {
89 if (from == nullptr || length < 1) {
90 return -1;
91 }
92 uchar *ptr = (uchar *)from; // NOLINT
93 uchar *uto = (uchar *)to; // NOLINT
94 CopyInteger(ptr, length, unsigned_flag, uto);
95 return 0;
96}
97
98__attribute__((unused)) static int PackFloat(const void *from, void *to) {
99 if (from == nullptr) {

Callers 2

TEST_FFunction · 0.85
PackValueFunction · 0.85

Calls 1

CopyIntegerFunction · 0.85

Tested by 1

TEST_FFunction · 0.68