Q3MemoryStorage_SetBuffer
You can use theQ3MemoryStorage_SetBufferfunction to set the data of a memory storage object.
TQ3Status Q3MemoryStorage_SetBuffer ( TQ3StorageObject storage, unsigned char *buffer, unsigned long validSize, unsigned long bufferSize);
storage- A memory storage object.
buffer- A pointer to a block of memory to be associated with the specified storage object, or
NULL.validSize- The size, in bytes, of the valid metafile data contained in the specified buffer. If the value of
bufferisNULL, this parameter specifies the initial size and also the grow size of the buffer that QuickDraw 3D allocates internally.bufferSize- The size, in bytes, of the specified buffer.
DESCRIPTION
TheQ3MemoryStorage_SetBufferfunction sets the buffer location, size, and valid size of the memory storage object specified by thestorageparameter to the values specified in thebuffer,bufferSize, andvalidSizeparameters.If you pass the value
NULLin thebufferparameter, QuickDraw 3D allocates a buffer ofvalidSizebytes, increases the buffer by that size whenever necessary, and later disposes of the buffer when the associated storage object is closed or disposed of. Ifbufferis set toNULLandvalidSizeis set to 0, QuickDraw 3D uses a default initial buffer and grow size.SPECIAL CONSIDERATIONS
You must not useQ3MemoryStorage_SetBufferwith an open memory storage object.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help