sofia-sip/msg_buffer.h File Reference


Detailed Description

Internal buffer management functions.

Author:
Pekka Pessi <Pekka.Pessi@nokia-email.address.hidden>
Date:
Created: Fri Nov 8 12:23:00 2002 ppessi

#include <sofia-sip/msg_types.h>

Include dependency graph for msg_buffer.h:

Go to the source code of this file.

Functions

SOFIA_BEGIN_DECLS SOFIAPUBFUN
void * 
msg_buf_alloc (msg_t *msg, unsigned size)
 Allocate a buffer of size octets, with slack of msg_min_size.
SOFIAPUBFUN void * msg_buf_exact (msg_t *msg, unsigned size)
 Allocate a buffer exactly of size octets, without any slack.
SOFIAPUBFUN unsigned msg_buf_commit (msg_t *msg, unsigned size, int eos)
 Commit data into buffer.
SOFIAPUBFUN unsigned msg_buf_committed (msg_t const *msg)
 Get length of committed data.
SOFIAPUBFUN void * msg_buf_committed_data (msg_t const *msg)
 Get committed data.
SOFIAPUBFUN void * msg_buf_move (msg_t *dst, msg_t const *src)
 Move unparsed data from src to dst.
SOFIAPUBFUN void msg_buf_set (msg_t *msg, void *b, unsigned size)
 Set buffer.


Sofia-SIP 1.12.1 - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.