ts_row_to_elem() 函数将 MI_ROW 结构转换为新的 ts_tselem 结构。新元素不会覆盖任何其他时间系列 API 函数返回的元素。
ts_tselem ts_row_to_elem(ts_tsdesc *tsdesc, MI_ROW *row, mi_integer *offset_ptr)
offset_ptr 参数可以是 NULL。在这种情况下,将不进行日历计算并且列 0 可以是 NULL。
元素及其偏移量。如果时间系列是规则的,那么元素的列 0(时间戳记列)为 NULL。
此元素必须由调用者使用 ts_free_elem() 过程释放。