Adobe.com
Contents Suites Classes Class Index Member Index

ai::SPAlloc Class Reference

Allocator object class for the AutoBuffer template. More...

#include <IAIAutoBuffer.h>

List of all members.

Static Public Member Functions

static void * AllocateBlock (size_t byteCount)
 Allocates a block of memory.
static void DeleteBlock (void *block)
 Frees a block of memory allocated by AllocateBlock().

Detailed Description

Allocator object class for the AutoBuffer template.


Member Function Documentation

void * ai::SPAlloc::AllocateBlock ( size_t  byteCount  )  [static]

Allocates a block of memory.

Parameters:
byteCount The number of bytes, an unsigned integer.
Returns:
A pointer to the allocated block.

References SPBlocksSuite::AllocateBlock, kOutOfMemoryErr, and sSPBlocks.

void ai::SPAlloc::DeleteBlock ( void *  block  )  [static]

Frees a block of memory allocated by AllocateBlock().

Parameters:
block A pointer to the block.

References SPBlocksSuite::FreeBlock, and sSPBlocks.


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


Contents Suites Classes Class Index Member Index
Adobe Solutions Network
 
Copyright © 2014 Adobe Systems Incorporated. All rights reserved.
Terms of Use Online Privacy Policy Adobe and accessibility Avoid software piracy Permissions and Trademarks