Public Member Functions | Private Member Functions | Private Attributes | List of all members
rosbag::Buffer Class Reference

#include <buffer.h>

Public Member Functions

 Buffer ()
 
uint32_t getCapacity () const
 
uint8_t * getData ()
 
uint32_t getSize () const
 
void setSize (uint32_t size)
 
void swap (Buffer &other)
 
 ~Buffer ()
 

Private Member Functions

 Buffer (const Buffer &)
 
void ensureCapacity (uint32_t capacity)
 
Bufferoperator= (const Buffer &)
 

Private Attributes

uint8_t * buffer_
 
uint32_t capacity_
 
uint32_t size_
 

Detailed Description

Definition at line 75 of file buffer.h.

Constructor & Destructor Documentation

◆ Buffer() [1/2]

rosbag::Buffer::Buffer ( )

Definition at line 78 of file buffer.cpp.

◆ ~Buffer()

rosbag::Buffer::~Buffer ( )

Definition at line 80 of file buffer.cpp.

◆ Buffer() [2/2]

rosbag::Buffer::Buffer ( const Buffer )
private

Member Function Documentation

◆ ensureCapacity()

void rosbag::Buffer::ensureCapacity ( uint32_t  capacity)
private

Definition at line 93 of file buffer.cpp.

◆ getCapacity()

uint32_t rosbag::Buffer::getCapacity ( ) const

Definition at line 85 of file buffer.cpp.

◆ getData()

uint8_t * rosbag::Buffer::getData ( )

Definition at line 84 of file buffer.cpp.

◆ getSize()

uint32_t rosbag::Buffer::getSize ( ) const

Definition at line 86 of file buffer.cpp.

◆ operator=()

Buffer& rosbag::Buffer::operator= ( const Buffer )
private

◆ setSize()

void rosbag::Buffer::setSize ( uint32_t  size)

Definition at line 88 of file buffer.cpp.

◆ swap()

void rosbag::Buffer::swap ( Buffer other)

Definition at line 113 of file buffer.cpp.

Member Data Documentation

◆ buffer_

uint8_t* rosbag::Buffer::buffer_
private

Definition at line 126 of file buffer.h.

◆ capacity_

uint32_t rosbag::Buffer::capacity_
private

Definition at line 127 of file buffer.h.

◆ size_

uint32_t rosbag::Buffer::size_
private

Definition at line 128 of file buffer.h.


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


rosbag_storage
Author(s): Dirk Thomas , Jacob Perron
autogenerated on Sat Sep 14 2024 02:59:52