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

Function AppendFloat

src/codec/codec.h:225–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225inline int32_t AppendFloat(int8_t* buf_ptr, uint32_t buf_size, float val,
226 uint32_t field_offset) {
227 if (field_offset + 4 > buf_size) {
228 return -1;
229 }
230 *(reinterpret_cast<float*>(buf_ptr + field_offset)) = val;
231 return 4;
232}
233
234inline int32_t AppendInt32(int8_t* buf_ptr, uint32_t buf_size, int32_t val,
235 uint32_t field_offset) {

Callers 2

AppendValueMethod · 0.85
MakeDefaultMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected