ssh_buffer(3)

NAME

Ssh_buffer - buffer handling
Functions
void buffer_free (BUFFER *buffer)
desallocate a buffer
void * buffer_get (BUFFER *buffer)
get a pointer on the head of the buffer
int buffer_get_len (BUFFER *buffer)
get length of the buffer, not counting position
BUFFER * buffer_new ()
creates a new buffer

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
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout