12 #ifndef ROC_PACKET_PACKET_FACTORY_H_
13 #define ROC_PACKET_PACKET_FACTORY_H_
Base class for non-copyable objects.
Optionally constructed object.
PacketPtr new_packet()
Allocate packet.
PacketFactory(core::IArena &arena, size_t buffer_size)
Initialize with default pools. buffer_size defines number of bytes in packet buffer.
size_t packet_buffer_size() const
Get packet buffer size in bytes.
core::BufferPtr new_packet_buffer()
Allocate packet buffer.
PacketFactory(core::IPool &packet_pool, core::IPool &buffer_pool)
Initialize with custom pools. packet_pool is a pool of packet::Packet objects. buffer_pool is a pool ...
Optionally constructed object.