NetBurner 3.5.6
PDF Version |
Smart pointer wrapper for automatic buffer management. More...
#include <buffers.h>
Public Member Functions | |
SMPoolPtr () | |
Constructor - automatically allocates a buffer. | |
SMPoolPtr (const PoolPtr pp) | |
Constructor from existing buffer pointer. | |
~SMPoolPtr () | |
Destructor - automatically frees the buffer. | |
Smart pointer wrapper for automatic buffer management.
RAII wrapper that automatically allocates a buffer on construction and frees it on destruction. Helps prevent buffer leaks in exception-safe code.
|
inline |
Constructor from existing buffer pointer.
pp | Buffer to manage |