: iterator_impl<is_const>(i.bl, i.off, i.p, i.p_off) {}
template<bool is_const>
- void buffer::list::iterator_impl<is_const>::advance(ssize_t o)
+ void buffer::list::iterator_impl<is_const>::advance(int o)
{
//cout << this << " advance " << o << " from " << off << " (p_off " << p_off << " in " << p->length() << ")" << std::endl;
if (o > 0) {
}
template<bool is_const>
- void buffer::list::iterator_impl<is_const>::seek(size_t o)
+ void buffer::list::iterator_impl<is_const>::seek(unsigned o)
{
p = ls->begin();
off = p_off = 0;
: iterator_impl(l, o, ip, po)
{}
- void buffer::list::iterator::advance(ssize_t o)
+ void buffer::list::iterator::advance(int o)
{
buffer::list::iterator_impl<false>::advance(o);
}
- void buffer::list::iterator::seek(size_t o)
+ void buffer::list::iterator::seek(unsigned o)
{
buffer::list::iterator_impl<false>::seek(o);
}
//return off == bl->length();
}
- void advance(ssize_t o);
- void seek(size_t o);
+ void advance(int o);
+ void seek(unsigned o);
char operator*() const;
iterator_impl& operator++();
ptr get_current_ptr() const;
iterator(bl_t *l, unsigned o=0);
iterator(bl_t *l, unsigned o, list_iter_t ip, unsigned po);
- void advance(ssize_t o);
- void seek(size_t o);
+ void advance(int o);
+ void seek(unsigned o);
char operator*();
iterator& operator++();
ptr get_current_ptr();