#include <BufferDescriptor.h>
BufferDescriptor encapsulates information related to a particular buffer of data.
The underlying memory is created by a BufferGroup.
Public Member Functions | |
| uint32 | FrameNumber () const |
| Get the frame number for this buffer. | |
| bigtime_t | Timestamp () |
| Get the timestamp for this buffer. | |
| uint8 * | DataBytes () const |
| Get a pointer to the start of this buffer's data region. | |
| size_t | DataSize () const |
| Get the size of the buffer's data region. | |
| DataFormat * | DataFormat () const |
Get the DataFormat for this buffer. | |
| bool | operator== (const BufferDescriptor &that) const |
| Check if this buffer is equal to another. | |
| bool | operator!= (const BufferDescriptor &that) const |
| Check if this buffer is not equal to another. | |
Static Public Attributes | |
| const BufferDescriptor | null |
| A null (invalid) buffer descriptor. | |
Private Member Functions | |
| BufferDescriptor () | |
| Class ctor, creates an unitialized buffer. | |
| ~BufferDescriptor () | |
| Class dtor, keeps construction/destruction private. | |
Friends | |
| class | BufferGroup |
| Give buffer groups access to our private members. | |
|
|
Class ctor, creates an unitialized buffer.
|
|
|
Class dtor, keeps construction/destruction private.
|
|
|
Get a pointer to the start of this buffer's data region.
The data in this region is organized according to the buffer's
|
|
|
Get the
The
|
|
|
Get the size of the buffer's data region.
|
|
|
Get the frame number for this buffer.
The frame number is set by the
|
|
|
Check if this buffer is not equal to another.
|
|
|
Check if this buffer is equal to another.
Two buffers are considered equal if they have the same frame number, timestamp and
|
|
|
Get the timestamp for this buffer. This operation is intended to be used in real-time processing and may not have meaning for offline processing.
|
|
|
Give buffer groups access to our private members.
|
|
|
A null (invalid) buffer descriptor. This is probably not needed, but it is here for now. |
1.3.9.1