(vec *vector.Int, index []uint32, n uint32)
| 154 | } |
| 155 | |
| 156 | func durToString(vec *vector.Int, index []uint32, n uint32) ([]uint32, []byte) { |
| 157 | var bytes []byte |
| 158 | offs := []uint32{0} |
| 159 | for i := range n { |
| 160 | idx := i |
| 161 | if index != nil { |
| 162 | idx = index[i] |
| 163 | } |
| 164 | bytes = append(bytes, nano.Duration(vec.Values[idx]).String()...) |
| 165 | offs = append(offs, uint32(len(bytes))) |
| 166 | } |
| 167 | return offs, bytes |
| 168 | } |
no test coverage detected