MythTV  master
Public Member Functions | Private Attributes | List of all members
MythAVBufferRef Class Reference

C++ wrapper for AVBufferRef. More...

#include <mythavutil.h>

Public Member Functions

 MythAVBufferRef (AVBufferRef *buf)
 
 ~MythAVBufferRef ()
 
bool has_buffer ()
 
const uint8_t * data ()
 
size_t size ()
 

Private Attributes

AVBufferRef * m_buffer {nullptr}
 

Detailed Description

C++ wrapper for AVBufferRef.

Using this avoids littering the code with manual memory management.

You must verify that the instance has_buffer() before calling any other function.

Definition at line 113 of file mythavutil.h.

Constructor & Destructor Documentation

◆ MythAVBufferRef()

MythAVBufferRef::MythAVBufferRef ( AVBufferRef *  buf)
inlineexplicit
Parameters
bufThe AVBufferRef* to reference, must be non-NULL.

Definition at line 118 of file mythavutil.h.

◆ ~MythAVBufferRef()

MythAVBufferRef::~MythAVBufferRef ( )
inline

Definition at line 125 of file mythavutil.h.

Member Function Documentation

◆ has_buffer()

bool MythAVBufferRef::has_buffer ( )
inline

Definition at line 133 of file mythavutil.h.

◆ data()

const uint8_t* MythAVBufferRef::data ( )
inline

Definition at line 135 of file mythavutil.h.

◆ size()

size_t MythAVBufferRef::size ( )
inline

Definition at line 136 of file mythavutil.h.

Member Data Documentation

◆ m_buffer

AVBufferRef* MythAVBufferRef::m_buffer {nullptr}
private

Definition at line 138 of file mythavutil.h.


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