Re: [Libevent-users] a question of evbuffer_pullup

2012-08-24 Thread Nick Mathewson
On Thu, Aug 23, 2012 at 2:35 PM, simon zhang wrote: > I don't understand “must first ensure that the front of the buffer > really is contiguous”. > > I can get 100 bytes from evbuffer by evbuffer_pullup() or evbuffer_remove(). > evbuffer_pullup():get some contiguous data. > evbuffer_remove():get s

[Libevent-users] a question of evbuffer_pullup

2012-08-23 Thread simon zhang
I don't understand “must first ensure that the front of the buffer really is contiguous”. I can get 100 bytes from evbuffer by evbuffer_pullup() or evbuffer_remove(). evbuffer_pullup():get some contiguous data. evbuffer_remove():get some discontinuous data??? Some discontinuous data??Why we need