(vec *vector.Int, index []uint32, n uint32)
| 139 | } |
| 140 | |
| 141 | func timeToString(vec *vector.Int, index []uint32, n uint32) ([]uint32, []byte) { |
| 142 | var bytes []byte |
| 143 | offs := []uint32{0} |
| 144 | for i := range n { |
| 145 | idx := i |
| 146 | if index != nil { |
| 147 | idx = index[i] |
| 148 | } |
| 149 | s := nano.Ts(vec.Values[idx]).Time().Format(time.RFC3339Nano) |
| 150 | bytes = append(bytes, s...) |
| 151 | offs = append(offs, uint32(len(bytes))) |
| 152 | } |
| 153 | return offs, bytes |
| 154 | } |
| 155 | |
| 156 | func durToString(vec *vector.Int, index []uint32, n uint32) ([]uint32, []byte) { |
| 157 | var bytes []byte |
no test coverage detected