]> granicus.if.org Git - libevent/commit
Add a new improved search function.
authorNick Mathewson <nickm@torproject.org>
Fri, 3 Apr 2009 01:21:36 +0000 (01:21 +0000)
committerNick Mathewson <nickm@torproject.org>
Fri, 3 Apr 2009 01:21:36 +0000 (01:21 +0000)
commitf90500a5df9af60502215d640ccbf2ba031d30e0
tree9bff5739f881873ef0e75f62e01f27268a5834ce
parent0afb1f7ffbdb229c3adbaae18899c6b5c4774558
Add a new improved search function.

The old evbuffer_find didn't allow iterative searching, and forced us
to repack the buffer completely every time we searched in it.  The
new evbuffer_search addresses both of these.  As a side-effect, the
evbuffer_find implementation is now a little more efficient.

svn:r1130
buffer.c
include/event2/buffer.h
include/event2/buffer_compat.h
test/regress_buffer.c