xine-lib: xine-lib-1.2.13/include/xine/xine_buffer.h File Reference

xine-lib 1.2.13-20230125hg15249

Macros | Functions
xine_buffer.h File Reference
`#include <xine/attributes.h>`
`#include <xine/os_types.h>`

Go to the source code of this file.

## Macros
#define | xine_buffer_free(buf) buf=_xine_buffer_free(buf)
#define | xine_buffer_copyin(buf, i, data, len) buf=_xine_buffer_copyin(buf,i,data,len)
#define | xine_buffer_set(buf, i, b, len) buf=_xine_buffer_set(buf,i,b,len)
#define | xine_buffer_strcat(buf, data) buf=_xine_buffer_strcat(buf,data)
#define | xine_buffer_strcpy(buf, index, data) buf=_xine_buffer_strcpy(buf,index,data)
#define | xine_buffer_ensure_size(buf, data) buf=_xine_buffer_ensure_size(buf,data)

## Functions
void * | xine_buffer_init (int chunk_size)
void * | _xine_buffer_free (void *buf)
void * | xine_buffer_dup (const void *buf)
void * | _xine_buffer_copyin (void *buf, int index, const void *data, int len)
void | xine_buffer_copyout (const void *buf, int index, void *data, int len)
void * | _xine_buffer_set (void *buf, int index, uint8_t b, int len)
void * | _xine_buffer_strcat (void *buf, const char *data)
void * | _xine_buffer_strcpy (void *buf, int index, const char *data)
char * | xine_buffer_strchr (const void *buf, int ch)
int | xine_buffer_get_size (const void *buf)
void * | _xine_buffer_ensure_size (void *buf, int size)

## Macro Definition Documentation

## ◆ xine_buffer_copyin

#define xine_buffer_copyin | ( |  | buf,
|  |  | i,
|  |  | data,
|  |  | len ) buf=_xine_buffer_copyin(buf,i,data,len)

## ◆ xine_buffer_ensure_size

#define xine_buffer_ensure_size | ( |  | buf,
|  |  | data ) buf=_xine_buffer_ensure_size(buf,data)

## ◆ xine_buffer_free

#define xine_buffer_free | ( |  | buf | ) | buf=_xine_buffer_free(buf)

## ◆ xine_buffer_set

#define xine_buffer_set | ( |  | buf,
|  |  | i,
|  |  | b,
|  |  | len ) buf=_xine_buffer_set(buf,i,b,len)

## ◆ xine_buffer_strcat

#define xine_buffer_strcat | ( |  | buf,
|  |  | data ) buf=_xine_buffer_strcat(buf,data)

## ◆ xine_buffer_strcpy

#define xine_buffer_strcpy | ( |  | buf,
|  |  | index,
|  |  | data ) buf=_xine_buffer_strcpy(buf,index,data)

## Function Documentation

## ◆ _xine_buffer_copyin()

void * _xine_buffer_copyin | ( | void * | buf,
|  | int | index,
|  | const void * | data,
|  | int | len )

References CHECK_MAGIC, GROW_TO, lprintf, NULL, and xine_fast_memcpy.

## ◆ _xine_buffer_ensure_size()

void * _xine_buffer_ensure_size | ( | void * | buf,
|  | int | size )

References CHECK_MAGIC, GROW_TO, and lprintf.

## ◆ _xine_buffer_free()

void * _xine_buffer_free | ( | void * | buf | ) |

References CHECK_MAGIC, lprintf, NULL, and XINE_BUFFER_HEADER_SIZE.

## ◆ _xine_buffer_set()

void * _xine_buffer_set | ( | void * | buf,
|  | int | index,
|  | uint8_t | b,
|  | int | len )

References CHECK_MAGIC, GROW_TO, lprintf, and NULL.

## ◆ _xine_buffer_strcat()

void * _xine_buffer_strcat | ( | void * | buf,
|  | const char * | data )

References _xine_buffer_strcpy().

## ◆ _xine_buffer_strcpy()

void * _xine_buffer_strcpy | ( | void * | buf,
|  | int | index,
|  | const char * | data )

References CHECK_MAGIC, GROW_TO, lprintf, and NULL.

Referenced by _xine_buffer_strcat().

## ◆ xine_buffer_copyout()

void xine_buffer_copyout | ( | const void * | buf,
|  | int | index,
|  | void * | data,
|  | int | len )

References CHECK_MAGIC, GET_HEADER_CONST, lprintf, and xine_fast_memcpy.

## ◆ xine_buffer_dup()

void * xine_buffer_dup | ( | const void * | buf | ) |

References CHECK_MAGIC, GET_HEADER_CONST, lprintf, NULL, XINE_BUFFER_HEADER_SIZE, and xine_fast_memcpy.

## ◆ xine_buffer_get_size()

int xine_buffer_get_size | ( | const void * | buf | ) |

References CHECK_MAGIC, GET_HEADER_CONST, and lprintf.

## ◆ xine_buffer_init()

void * xine_buffer_init | ( | int | chunk_size | ) |

References xine_buffer_header_t::chunk_size, xine_buffer_header_t::magic, NULL, xine_buffer_header_t::size, XINE_BUFFER_HEADER_SIZE, and XINE_BUFFER_MAGIC.

Referenced by deinterlace_init_plugin(), open_plugin(), open_plugin(), open_plugin(), real_parse_sdp(), real_setup_and_get_header(), rtsp_session_start(), sdpplin_parse(), and sdpplin_parse_stream().

## ◆ xine_buffer_strchr()

char * xine_buffer_strchr | ( | const void * | buf,
|  | int | ch )

References CHECK_MAGIC, lprintf, and NULL.