![]() |
Adobe Photoshop SDK |
|
Buffer Suite CallbacksThe Buffer suite provides an alternative to the memory management functions available in previous versions of the Photoshop plug-in specification. More...
Detailed DescriptionThe Buffer suite provides an alternative to the memory management functions available in previous versions of the Photoshop plug-in specification.
It provides a set of routines to request that the host allocate and dispose of memory out of a pool which it manages.
Accessing the Suite #define kPSBufferSuite "Photoshop Buffer Suite for Plug-ins"
#define kPSBufferSuiteVersion1 1
PSBufferSuite1 *sPSBuffer; error = sSPBasic->AcquireSuite(kPSBufferSuite, kPSBufferSuiteVersion1, &sPSBuffer); if (error) goto . . . //handle error Define Documentation
Unique identifier for the Buffer Suite.
Current version of the buffer suite.
64 bit version of the buffer suite.
current version of the buffer suite.
Typedef Documentation
Attempts to allocate the number of bytes specified with the variable pointed to by the
If this many bytes cannot be allocated, then the largest possible number (greater than
Attempts to allocate the number of bytes specified with the variable pointed to by the
If this many bytes cannot be allocated, then the largest possible number (greater than
Disposes of the buffer and sets the variable that refers to it to NULL. Does nothing if the buffer pointer is already NULL.
Gets the size of the buffer.
Gets the size of the buffer.
Gets the amount of space available. This space may not be contiguous.
Gets the amount of space available. This space may not be contiguous.
|