paraslash Paraslash Audio Streaming
About   News   Download   Documentation   Development

Data Fields
para_buffer Struct Reference

A string buffer used for para_printf(). More...

#include <string.h>

Data Fields

char * buf
 The buffer. More...
 
size_t size
 The size of buf. More...
 
size_t max_size
 The maximal size this buffer may grow. More...
 
unsigned flags
 
size_t offset
 The next para_printf() will write at this offset. More...
 
int(* max_size_handler )(char *buf, size_t size, void *private_data)
 If an attempt to print into this buffer is made that would need to grow buf to a size larger than max_size, then this function is called. More...
 
void * private_data
 Passed to max_size_handler(). More...
 

Detailed Description

A string buffer used for para_printf().

Field Documentation

◆ buf

char* buf

The buffer.

May be NULL.

Referenced by para_printf().

◆ size

size_t size

The size of buf.

Referenced by para_printf().

◆ max_size

size_t max_size

The maximal size this buffer may grow.

Zero means unlimited.

◆ flags

unsigned flags

◆ offset

size_t offset

The next para_printf() will write at this offset.

Referenced by para_printf().

◆ max_size_handler

int(* max_size_handler) (char *buf, size_t size, void *private_data)

If an attempt to print into this buffer is made that would need to grow buf to a size larger than max_size, then this function is called.

◆ private_data

void* private_data

Passed to max_size_handler().


The documentation for this struct was generated from the following file: