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

Method SetInt16

src/codec/codec.cc:261–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261bool RowBuilder::SetInt16(uint32_t index, int16_t val) {
262 if (!Check(index, ::fedb::type::kSmallInt)) return false;
263 SetField(index);
264 int8_t* ptr = buf_ + offset_vec_[index];
265 *(reinterpret_cast<int16_t*>(ptr)) = val;
266 return true;
267}
268
269bool RowBuilder::AppendTimestamp(int64_t val) {
270 if (!SetTimestamp(cnt_, val)) return false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected