- Main Page
- Modules
- Namespaces
- Classes
- Files
- Directories
- Related Pages

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# InternalPacketPool Class Reference

`#include <InternalPacketPool.h>`

List of all members.

## Public Member Functions
| InternalPacketPool ()
| Constructor.
| ~InternalPacketPool ()
| Destructor.
InternalPacket * | GetPointer (void)
void | ReleasePointer (InternalPacket *p)
void | ClearPool (void)
## Private Attributes
DataStructures::Queue< InternalPacket * > | pool
| Queue of internal packets.

## Detailed Description

Handles of a pool of InternalPacket pointers. This is only here for efficiency.

See also:
  InternalPacket.h

## Member Function Documentation

InternalPacket* InternalPacketPool::GetPointer | ( | void |  | ) | `[inline]`

| Get an InternalPacket pointer. Will either allocate a new one or return one from the pool Returns: An InternalPacket pointer.

void InternalPacketPool::ReleasePointer | ( | InternalPacket * | p | ) |

  | Return an InternalPacket pointer to the pool. Parameters:
  `[in]` | p | A pointer to an InternalPacket you no longer need.

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

- C:/RakNet 2.518/Include/InternalPacketPool.h
- C:/RakNet 2.518/Source/InternalPacketPool.cpp