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

Function AppendDouble

src/codec/codec.h:252–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252inline int32_t AppendDouble(int8_t* buf_ptr, uint32_t buf_size, double val,
253 uint32_t field_offset) {
254 if (field_offset + 8 > buf_size) {
255 return -1;
256 }
257
258 *(reinterpret_cast<double*>(buf_ptr + field_offset)) = val;
259 return 8;
260}
261
262int32_t AppendString(int8_t* buf_ptr, uint32_t buf_size, int8_t* val,
263 uint32_t size, uint32_t str_start_offset,

Callers 2

AppendValueMethod · 0.85
MakeDefaultMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected