# oxs_buffer.h File Reference

The buffer representation in OMXMLSecurity. More...

`#include <axis2_defines.h>`
`#include <axutil_env.h>`
`#include <axis2_util.h>`
`#include <oxs_axiom.h>`
`#include <oxs_error.h>`
`#include <oxs_constants.h>`
`#include <stdio.h>`

Go to the source code of this file.

## Defines
#define | OXS_BUFFER_INITIAL_SIZE 1024
## Typedefs
typedef struct oxs_buffer | oxs_buffer_t
## Enumerations
enum | oxs_AllocMode { oxs_alloc_mode_exact = 0, oxs_alloc_mode_double }
## Functions
AXIS2_EXTERN axis2_status_t | oxs_buffer_free (oxs_buffer_t *buffer, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | oxs_buffer_remove_head (oxs_buffer_t *buffer, const axutil_env_t *env, int size)
AXIS2_EXTERN axis2_status_t | oxs_buffer_remove_tail (oxs_buffer_t *buffer, const axutil_env_t *env, int size)
AXIS2_EXTERN axis2_status_t | oxs_buffer_populate (oxs_buffer_t *buffer, const axutil_env_t *env, unsigned char *data, int size)
AXIS2_EXTERN axis2_status_t | oxs_buffer_append (oxs_buffer_t *buffer, const axutil_env_t *env, unsigned char *data, int size)
AXIS2_EXTERN axis2_status_t | oxs_buffer_prepend (oxs_buffer_t *buffer, const axutil_env_t *env, unsigned char *data, int size)
AXIS2_EXTERN axis2_status_t | oxs_buffer_read_file (oxs_buffer_t *buffer, const axutil_env_t *env, const axis2_char_t *filename)
AXIS2_EXTERN axis2_status_t | oxs_buffer_set_size (oxs_buffer_t *buffer, const axutil_env_t *env, int size)
AXIS2_EXTERN axis2_status_t | oxs_buffer_set_max_size (oxs_buffer_t *buffer, const axutil_env_t *env, int size)
AXIS2_EXTERN unsigned char * | oxs_buffer_get_data (oxs_buffer_t *buffer, const axutil_env_t *env)
AXIS2_EXTERN int | oxs_buffer_get_size (oxs_buffer_t *buffer, const axutil_env_t *env)
AXIS2_EXTERN int | oxs_buffer_get_max_size (oxs_buffer_t *buffer, const axutil_env_t *env)
AXIS2_EXTERN oxs_buffer_t * | oxs_buffer_dup (oxs_buffer_t *buffer, const axutil_env_t *env)
AXIS2_EXTERN oxs_buffer_t * | oxs_buffer_create (const axutil_env_t *env)

## Detailed Description

The buffer representation in OMXMLSecurity.