17 #if !__APPLE__ && !__FreeBSD__ && !__VXWORKS__ 21 #endif // if !__APPLE__ && !__FreeBSD__ && !__VXWORKS__ 23 #define BUFFER_START_LENGTH 200 30 , m_internalBuffer(true)
36 const size_t bufferSize)
56 m_buffer =
reinterpret_cast<char*
>(malloc(size));
75 incBufferSize = minSizeInc;
bool m_internalBuffer
This variable indicates if the managed buffer is internal or is from the user.
virtual ~FastBuffer()
Default destructor.
FastBuffer()
This constructor creates an internal stream and assigns it to the eprosima::fastcdr::FastBuffers obje...
size_t m_bufferSize
The total size of the user's buffer.
#define BUFFER_START_LENGTH
char * m_buffer
Pointer to the stream of bytes that contains the serialized data.
bool resize(size_t minSizeInc)
This function resizes the raw buffer. It will call the user's defined function for this purpose...
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...
span_constexpr std::size_t size(span< T, Extent > const &spn)