![]() |
AJA NTV2 SDK
17.5.0.1658
NTV2 SDK 17.5.0.1658
|
#include <buffer.h>
Public Member Functions | |
| AJABuffer () | |
| virtual | ~AJABuffer () |
| AJAStatus | AttachBuffer (uint8_t *pBuffer, size_t size) |
| AJAStatus | AllocateBuffer (size_t size, size_t alignment=0, char *pName=NULL) |
| AJAStatus | FreeBuffer () |
| uint8_t * | GetBuffer () |
| uint32_t * | GetUINT32Buffer () |
| size_t | GetBufferSize () |
| size_t | GetBufferAlignment () |
| const char * | GetBufferName () |
| AJAStatus | SetDataOffset (size_t offset) |
| size_t | GetDataOffset () |
| AJAStatus | SetDataSize (size_t size) |
| size_t | GetDataSize () |
| uint8_t * | GetData () |
| AJABuffer::AJABuffer | ( | ) |
Definition at line 15 of file buffer.cpp.
|
virtual |
Definition at line 31 of file buffer.cpp.
Allocate memory from the system.
| [in] | size | Size of the memory buffer. |
| [in] | alignment | Memory buffer alignment in bytes. |
| [in] | pName | Name of shared memory buffer to attach. |
Definition at line 54 of file buffer.cpp.
| AJAStatus AJABuffer::AttachBuffer | ( | uint8_t * | pBuffer, |
| size_t | size | ||
| ) |
Attach a preallocated buffer.
| [in] | pBuffer | Address of the memory to attach. |
| [in] | size | Size of the memory region. |
Definition at line 38 of file buffer.cpp.
| AJAStatus AJABuffer::FreeBuffer | ( | ) |
Free allocated memory back to the system
Definition at line 136 of file buffer.cpp.
| uint8_t * AJABuffer::GetBuffer | ( | ) |
| size_t AJABuffer::GetBufferAlignment | ( | ) |
Get the buffer alignment.
Definition at line 194 of file buffer.cpp.
| const char * AJABuffer::GetBufferName | ( | ) |
Get the name of the shared buffer.
Definition at line 201 of file buffer.cpp.
| size_t AJABuffer::GetBufferSize | ( | ) |
| uint8_t * AJABuffer::GetData | ( | ) |
Get the address of the data region in the buffer.
Definition at line 248 of file buffer.cpp.
| size_t AJABuffer::GetDataOffset | ( | ) |
Get the offset of the data in the buffer.
Definition at line 221 of file buffer.cpp.
| size_t AJABuffer::GetDataSize | ( | ) |
Get the size of the data region in the buffer.
Definition at line 241 of file buffer.cpp.
| uint32_t * AJABuffer::GetUINT32Buffer | ( | ) |
Definition at line 180 of file buffer.cpp.
| AJAStatus AJABuffer::SetDataOffset | ( | size_t | offset | ) |
Set the offset of the data in the buffer.
| [in] | offset | Offset of the data. |
Definition at line 208 of file buffer.cpp.
| AJAStatus AJABuffer::SetDataSize | ( | size_t | size | ) |
Set the size of the data region in the buffer
| [in] | size | Size of the data. |
Definition at line 228 of file buffer.cpp.