DVBCore  22.3.0
Open Source DVB Engine
Classes | Functions
buffer.h File Reference

Reference counted buffer that is automatically deleted once the count becomes zero. More...

#include "techtype.h"

Go to the source code of this file.

Classes

struct  S_BUFFER
 

Functions

void * Buffer_New (U32BIT size, const void *data)
 Create buffer of given 'size' initialised to 'data'. The count is initialised to one. More...
 
void Buffer_Ref (void *buffer_data)
 Increment the count by one. More...
 
void Buffer_Unref (void *buffer_data)
 Decrement the count by one. The buffer is automatically deleted once the count becomes zero. More...
 

Detailed Description

Reference counted buffer that is automatically deleted once the count becomes zero.

Date
01/01/2017
Author
Ocean Blue

Function Documentation

void* Buffer_New ( U32BIT  size,
const void *  data 
)

Create buffer of given 'size' initialised to 'data'. The count is initialised to one.

Parameters
sizeSize
dataSource data. Can be NULL
Returns
Buffer data
void Buffer_Ref ( void *  buffer_data)

Increment the count by one.

Parameters
buffer_dataBuffer data
void Buffer_Unref ( void *  buffer_data)

Decrement the count by one. The buffer is automatically deleted once the count becomes zero.

Parameters
buffer_dataBuffer data