| 842 | |
| 843 | template<bool is_const> |
| 844 | void buffer::list::iterator_impl<is_const>::copy_all(list &dest) |
| 845 | { |
| 846 | if (p == ls->end()) |
| 847 | seek(off); |
| 848 | while (1) { |
| 849 | if (p == ls->end()) |
| 850 | return; |
| 851 | |
| 852 | unsigned howmuch = p->length() - p_off; |
| 853 | const char *c_str = p->c_str(); |
| 854 | dest.append(c_str + p_off, howmuch); |
| 855 | |
| 856 | *this += howmuch; |
| 857 | } |
| 858 | } |
| 859 | |
| 860 | template<bool is_const> |
| 861 | size_t buffer::list::iterator_impl<is_const>::get_ptr_and_advance( |