A reference to a chunk of memory useful for sharing media data between applications and nodes. More...
Inherited by BSmallBuffer.
Public Member Functions | |
media_audio_header * | AudioHeader () |
Gets a pointer to the header of the audio buffer. | |
buffer_clone_info | CloneInfo () const |
Gets the buffer_clone_info struct that describes the buffer. | |
void * | Data () |
Gets a pointer to the data of the buffer. | |
uint32 | Flags () |
Gets the flags of the buffer. | |
media_header * | Header () |
Gets a pointer to the header of the buffer. | |
media_buffer_id | ID () |
Gets the ID of the buffer according to the App Server. | |
void | Recycle () |
Recycles the buffer so that it can be reused. | |
void | SetSizeUsed (size_t used) |
Sets the size of the buffer that is used in bytes. | |
size_t | Size () |
Gets the size of the buffer in bytes. | |
size_t | SizeAvailable () |
Gets the size of the buffer in bytes. Alias for Size(). | |
size_t | SizeUsed () |
Gets the size of the portion of the buffer that is currently in use in bytes. | |
media_type | Type () |
Gets the media type of the data in the buffer. | |
media_video_header * | VideoHeader () |
Gets a pointer to a header of the video buffer. | |
A reference to a chunk of memory useful for sharing media data between applications and nodes.
media_audio_header * BBuffer::AudioHeader | ( | ) |
Gets a pointer to the header of the audio buffer.
buffer_clone_info BBuffer::CloneInfo | ( | ) | const |
Gets the buffer_clone_info
struct that describes the buffer.
buffer_clone_info
struct. void * BBuffer::Data | ( | ) |
Gets a pointer to the data of the buffer.
uint32 BBuffer::Flags | ( | ) |
Gets the flags of the buffer.
media_header * BBuffer::Header | ( | ) |
Gets a pointer to the header of the buffer.
media_buffer_id BBuffer::ID | ( | ) |
Gets the ID of the buffer according to the App Server.
void BBuffer::SetSizeUsed | ( | size_t | size_used | ) |
Sets the size of the buffer that is used in bytes.
This method should be called after writing data to the buffer.
size_t BBuffer::Size | ( | ) |
Gets the size of the buffer in bytes.
Alias for SizeAvailable().
size_t BBuffer::SizeAvailable | ( | ) |
Gets the size of the buffer in bytes. Alias for Size().
size_t BBuffer::SizeUsed | ( | ) |
Gets the size of the portion of the buffer that is currently in use in bytes.
media_type BBuffer::Type | ( | ) |
Gets the media type of the data in the buffer.
media_video_header * BBuffer::VideoHeader | ( | ) |
Gets a pointer to a header of the video buffer.