libonion
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
block.h File Reference
#include "types.h"
#include <stddef.h>
#include <unistd.h>

Functions

onion_blockonion_block_new ()
void onion_block_free (onion_block *b)
void onion_block_clear (onion_block *b)
void onion_block_min_maxsize (onion_block *b, int minsize)
off_t onion_block_size (const onion_block *b)
const char * onion_block_data (const onion_block *b)
void onion_block_rewind (onion_block *b, off_t n)
int onion_block_add_char (onion_block *b, char c)
int onion_block_add_str (onion_block *b, const char *str)
int onion_block_add_data (onion_block *b, const char *data, size_t length)
int onion_block_add_block (onion_block *b, onion_block *toadd)

Function Documentation

int onion_block_add_block ( onion_block b,
onion_block toadd 
)
int onion_block_add_char ( onion_block b,
char  c 
)
int onion_block_add_data ( onion_block b,
const char *  data,
size_t  length 
)
int onion_block_add_str ( onion_block b,
const char *  str 
)
void onion_block_clear ( onion_block b)
const char* onion_block_data ( const onion_block b)
void onion_block_free ( onion_block b)
void onion_block_min_maxsize ( onion_block b,
int  minsize 
)
onion_block* onion_block_new ( )
void onion_block_rewind ( onion_block b,
off_t  n 
)
off_t onion_block_size ( const onion_block b)