P_buf_init 3porty 2011-04-13 libporty manual

NAME

P_buf_get_current_len

SYNPOSIS

#include <libporty/util/buf.h>

int P_buf_get_current_len (P_buf_t *buf );

Link with -lporty_util

DESCRIPTION

P_buf_get_current_len is useful when the caller wants to limit the growth of the buffer, avoiding allocating too much memory while splitting a stream by limiting record size.

RETURN VALUE

The number of bytes stored in the last (currently gowing) buffer.

SEE ALSO

P_buf_init 3porty 2011-04-13 libporty manual