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

Function AppendInt16

src/codec/codec.h:216–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214 }
215}
216inline int32_t AppendInt16(int8_t* buf_ptr, uint32_t buf_size, int16_t val,
217 uint32_t field_offset) {
218 if (field_offset + 2 > buf_size) {
219 return -1;
220 }
221 *(reinterpret_cast<int16_t*>(buf_ptr + field_offset)) = val;
222 return 4;
223}
224
225inline int32_t AppendFloat(int8_t* buf_ptr, uint32_t buf_size, float val,
226 uint32_t field_offset) {

Callers 2

AppendValueMethod · 0.85
MakeDefaultMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected