uchar* tsmAllocTileBuffer ( TsmConnection connect )

Allocate memory to store a tile

Documentation

Allocate memory to store a tile.

This function will return an allocated area of memory sufficient to hold a single (uncompressed) tile for the dataset that is associated with a connection. Checks are made to ensure that you have passed a valid connect structure.

Tile buffers are used to store the data for a single terrain tile. For example, tsmReadTile will fill a tile buffer with data.

Returns:
the allocated tile buffer, of NULL if failed
Parameters:
connect - an open connection handle, as returned by tsmConnect
Author:
Martin Reddy
Version:
4 March 1998
See Also:
tsmFreeTileBuffer, tsmAllocTileHeader, tsmConnect, tsmReadTile


TSMAPI_RELEASE 2.1 - Release Date: 2001/01/10 19:01:12

Back to tsmApi Home Page