sofia-sip/msg_buffer.h File Reference

Defined when <sofia-sip/msg_buffer.h> has been included. More...

#include <sofia-sip/msg_types.h>

Include dependency graph for msg_buffer.h:

Go to the source code of this file.

Functions

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


Detailed Description

Defined when <sofia-sip/msg_buffer.h> has been included.

Internal buffer management functions.

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

Function Documentation

void* msg_buf_alloc ( msg_t msg,
usize_t  size 
)

Allocate a buffer of size octets, with slack of msg_min_size.

usize_t msg_buf_commit ( msg_t msg,
usize_t  size,
int  eos 
)

Commit data into buffer.

void* msg_buf_exact ( msg_t msg,
usize_t  size 
)

Allocate a buffer exactly of size octets, without any slack.

void msg_buf_set ( msg_t msg,
void *  b,
usize_t  size 
)

Set buffer.


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