ssh_buffer(3)

ssh_buffer3

Buffer handling

Detailed Description

buffer handling

Function Documentation

void buffer_free (BUFFER * buffer)

desallocate a buffer

Parameters:

buffer buffer to free

void* buffer_get (BUFFER * buffer)

get a pointer on the head of the buffer

Parameters:

buffer buffer

Returns:

data pointer on the head. Doesn't take position into account.

Warning:

don't expect data to be nul-terminated

See also:

buffer_get_rest()

buffer_get_len()

int buffer_get_len (BUFFER * buffer)

get length of the buffer, not counting position

Parameters:

buffer

Returns:

length of the buffer

See also:

buffer_get()

BUFFER* buffer_new ()

creates a new buffer

Returns:

a new initialized buffer

From libssh-2-doc 0.2+svn20070321-4 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.