17#if !__APPLE__ && !__FreeBSD__ && !__VXWORKS__
23#define BUFFER_START_LENGTH 200
29 const size_t bufferSize)
32 , m_internalBuffer(false)
49 buffer_ =
reinterpret_cast<char*
>(malloc(size));
68 incBufferSize = min_size_inc;
73 size_ = incBufferSize;
84 size_ += incBufferSize;
#define BUFFER_START_LENGTH
size_t size_
The total size of the user's buffer.
FastBuffer()=default
This constructor creates an internal stream and assigns it to the eprosima::fastcdr::FastBuffers obje...
bool resize(size_t min_size_inc)
This function resizes the raw buffer. It will call the user's defined function for this purpose.
bool m_internalBuffer
This variable indicates if the managed buffer is internal or is from the user.
char * buffer_
Pointer to the stream of bytes that contains the serialized data.
virtual ~FastBuffer()
Default destructor.
bool reserve(size_t size)
This function reserves memory for the internal raw buffer. It will only do so if the buffer is not ye...