openDAQ
Open data acquisition platform
PacketBufferBuilderPtr Class Reference

Briefly. More...

Inherits ObjectPtr< IPacketBufferBuilder >.

Detailed Description

Briefly.

Public Member Functions

daq::ContextPtr getContext () const
 Gets the context pointer. More...
 
PacketBufferBuilderPtr setContext (const daq::ContextPtr &context) const
 Sets the context pointer. More...
 
daq::SizeT getSizeInBytes () const
 Gets the size of the underlying buffer in bytes. More...
 
PacketBufferBuilderPtr setSizeInBytes (daq::SizeT sizeInBytes) const
 Sets the size of the underlying buffer in bytes. More...
 
daq::PacketBufferPtr build () const
 Builds the Packet Buffer with the internally specified size and context. More...
 

Member Function Documentation

◆ build()

daq::PacketBufferPtr build ( ) const
inline

Builds the Packet Buffer with the internally specified size and context.

Returns
Returns the newly created buffer

◆ getContext()

daq::ContextPtr getContext ( ) const
inline

Gets the context pointer.

Returns
The returned ContextPtr

◆ getSizeInBytes()

daq::SizeT getSizeInBytes ( ) const
inline

Gets the size of the underlying buffer in bytes.

Returns
Value of this variable will contain the size of the buffer in bytes

◆ setContext()

PacketBufferBuilderPtr setContext ( const daq::ContextPtr &  context) const
inline

Sets the context pointer.

Parameters
contextThe pointer that will be set

◆ setSizeInBytes()

PacketBufferBuilderPtr setSizeInBytes ( daq::SizeT  sizeInBytes) const
inline

Sets the size of the underlying buffer in bytes.

Parameters
sizeInBytesSets the size of the buffer in bytes