NetBurner 3.5.6
PDF Version
SMPoolPtr Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SMPoolPtr()

SMPoolPtr::SMPoolPtr ( const PoolPtr pp)
inline

Constructor from existing buffer pointer.

Parameters
ppBuffer to manage

The documentation for this class was generated from the following file: