| 563 | } |
| 564 | |
| 565 | server_tokens server_tokens::clone() const { |
| 566 | server_tokens res; |
| 567 | res.has_mtmd = has_mtmd; |
| 568 | res.tokens = tokens; |
| 569 | for (auto it = map_idx_to_media.begin(); it != map_idx_to_media.end(); ++it) { |
| 570 | size_t idx = it->first; |
| 571 | const mtmd::input_chunk_ptr & chunk = it->second; |
| 572 | res.map_idx_to_media[idx] = mtmd::input_chunk_ptr(mtmd_input_chunk_copy(chunk.get())); |
| 573 | } |
| 574 | return res; |
| 575 | } |
| 576 | |
| 577 | // |
| 578 | // tokenizer and input processing utils |
no test coverage detected