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

Function AppendInt64

src/codec/codec.h:243–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243inline int32_t AppendInt64(int8_t* buf_ptr, uint32_t buf_size, int64_t val,
244 uint32_t field_offset) {
245 if (field_offset + 8 > buf_size) {
246 return -1;
247 }
248 *(reinterpret_cast<int64_t*>(buf_ptr + field_offset)) = val;
249 return 8;
250}
251
252inline int32_t AppendDouble(int8_t* buf_ptr, uint32_t buf_size, double val,
253 uint32_t field_offset) {

Callers 2

AppendValueMethod · 0.85
MakeDefaultMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected