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

Method SetInt32

src/codec/codec.cc:247–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247bool RowBuilder::SetInt32(uint32_t index, int32_t val) {
248 if (!Check(index, ::fedb::type::kInt)) return false;
249 SetField(index);
250 int8_t* ptr = buf_ + offset_vec_[index];
251 *(reinterpret_cast<int32_t*>(ptr)) = val;
252 return true;
253}
254
255bool RowBuilder::AppendInt16(int16_t val) {
256 if (!SetInt16(cnt_, val)) return false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected