C AMQP Protocol Engine API  0.6
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
buffer.h File Reference
#include <proton/import_export.h>
#include <proton/types.h>
Include dependency graph for buffer.h:

Go to the source code of this file.

Typedefs

typedef struct pn_buffer_t pn_buffer_t
 

Functions

PN_EXTERN pn_buffer_tpn_buffer (size_t capacity)
 
PN_EXTERN void pn_buffer_free (pn_buffer_t *buf)
 
PN_EXTERN size_t pn_buffer_size (pn_buffer_t *buf)
 
PN_EXTERN size_t pn_buffer_capacity (pn_buffer_t *buf)
 
PN_EXTERN size_t pn_buffer_available (pn_buffer_t *buf)
 
PN_EXTERN int pn_buffer_ensure (pn_buffer_t *buf, size_t size)
 
PN_EXTERN int pn_buffer_append (pn_buffer_t *buf, const char *bytes, size_t size)
 
PN_EXTERN int pn_buffer_prepend (pn_buffer_t *buf, const char *bytes, size_t size)
 
PN_EXTERN size_t pn_buffer_get (pn_buffer_t *buf, size_t offset, size_t size, char *dst)
 
PN_EXTERN int pn_buffer_trim (pn_buffer_t *buf, size_t left, size_t right)
 
PN_EXTERN void pn_buffer_clear (pn_buffer_t *buf)
 
PN_EXTERN int pn_buffer_defrag (pn_buffer_t *buf)
 
PN_EXTERN pn_bytes_t pn_buffer_bytes (pn_buffer_t *buf)
 
PN_EXTERN int pn_buffer_print (pn_buffer_t *buf)
 

Typedef Documentation

typedef struct pn_buffer_t pn_buffer_t

Function Documentation

PN_EXTERN pn_buffer_t* pn_buffer ( size_t  capacity)
PN_EXTERN int pn_buffer_append ( pn_buffer_t buf,
const char *  bytes,
size_t  size 
)
PN_EXTERN size_t pn_buffer_available ( pn_buffer_t buf)
PN_EXTERN pn_bytes_t pn_buffer_bytes ( pn_buffer_t buf)
PN_EXTERN size_t pn_buffer_capacity ( pn_buffer_t buf)
PN_EXTERN void pn_buffer_clear ( pn_buffer_t buf)
PN_EXTERN int pn_buffer_defrag ( pn_buffer_t buf)
PN_EXTERN int pn_buffer_ensure ( pn_buffer_t buf,
size_t  size 
)
PN_EXTERN void pn_buffer_free ( pn_buffer_t buf)
PN_EXTERN size_t pn_buffer_get ( pn_buffer_t buf,
size_t  offset,
size_t  size,
char *  dst 
)
PN_EXTERN int pn_buffer_prepend ( pn_buffer_t buf,
const char *  bytes,
size_t  size 
)
PN_EXTERN int pn_buffer_print ( pn_buffer_t buf)
PN_EXTERN size_t pn_buffer_size ( pn_buffer_t buf)
PN_EXTERN int pn_buffer_trim ( pn_buffer_t buf,
size_t  left,
size_t  right 
)