PathEngine home previous: iPathEngine::largeStaticObstacleShapeIsValid()next: iPathEngine::loadFederation()
Contents, API Reference, Interfaces, iPathEngine, loadContentChunk

iPathEngine::loadContentChunk()

Description

Constructs an iContentChunk object from a data buffer previously saved out by iContentChunk::save().

Syntax

iContentChunk* loadContentChunk(const char* dataBuffer, tUnsigned32 bufferSize);

Parameters

dataBufferA byte buffer. This buffer is not retained after the call and can subsequently be safely deleted.
bufferSizeThe size of the buffer pointed to by dataBuffer, in bytes.

Return Value

If the data passed in is valid then a newly created Interface iContentChunk object is returned.
Otherwise non-fatal errors will be reported relating to the validation failure and zero will be returned.

Remarks

The created Interface iContentChunk should be explicitly deleted when no longer required, and will also be deleted if iPathEngine::deleteAllObjects() is called - in either case the pointer can no longer be used.

See Also

iPathEngine::newContentChunk()
Documentation for PathEngine release 5.17 - Copyright © 2002-2008 PathEnginenext: iPathEngine::loadFederation()