evbuffer_get_contiguous_space

Returns the number of contiguous available bytes in the first buffer chain.

This is useful when processing data that might be split into multiple chains, or that might all be in the first chain. Calls to evbuffer_pullup() that cause reallocation and copying of data can thus be avoided.

@param buf pointer to the evbuffer @return 0 if no data is available, otherwise the number of available bytes in the first buffer chain.

extern (C) nothrow
size_t
evbuffer_get_contiguous_space
(
const(evbuffer)* buf
)

Meta