#include <cat.h>
cat_buffer *catbuf_get(cat_session *s, int fd);
catbuf_get() removes the current data buffer for file descriptor fd in session s, and returns the buffer. This function should be called by any filter function that wants to look at or modify the buffer data. The buffer data should be returned to the session with catbuf_put() or it will disappear from the data stream.
The offset counter is reset to zero when the buffer is returned.
NULL
.