1<!-- Creator : groff version 1.19.2 --> 2<!-- CreationDate: Mon Jan 2 17:41:37 2006 --> 3<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 4"http://www.w3.org/TR/html4/loose.dtd"> 5<html> 6<head> 7<meta name="generator" content="groff -Thtml, see www.gnu.org"> 8<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> 9<meta name="Content-Style" content="text/css"> 10<style type="text/css"> 11 p { margin-top: 0; margin-bottom: 0; } 12 pre { margin-top: 0; margin-bottom: 0; } 13 table { margin-top: 0; margin-bottom: 0; } 14</style> 15<title>MEMORY</title> 16 17</head> 18<body> 19 20<h1 align=center>MEMORY</h1> 21 22<a href="#NAME">NAME</a><br> 23<a href="#SYNOPSIS">SYNOPSIS</a><br> 24<a href="#DESCRIPTION">DESCRIPTION</a><br> 25<a href="#DIAGNOSTICS">DIAGNOSTICS</a><br> 26<a href="#SEE ALSO">SEE ALSO</a><br> 27 28<hr> 29 30 31<a name="NAME"></a> 32<h2>NAME</h2> 33 34 35<p style="margin-left:11%; margin-top: 1em">_TIFFmalloc, 36_TIFFrealloc, _TIFFfree, _TIFFmemset, _TIFFmemcpy, 37_TIFFmemcmp, − memory management-related functions for 38use with <small>TIFF</small> files</p> 39 40<a name="SYNOPSIS"></a> 41<h2>SYNOPSIS</h2> 42 43 44<p style="margin-left:11%; margin-top: 1em"><b>#include 45<tiffio.h></b></p> 46 47<p style="margin-left:11%; margin-top: 1em"><b>tdata_t 48_TIFFmalloc(tsize_t</b> <i>size</i><b>); <br> 49tdata_t _TIFFrealloc(tdata_t</b> <i>buffer</i><b>, 50tsize_t</b> <i>size</i><b>); <br> 51void _TIFFfree(tdata_t</b> <i>buffer</i><b>); <br> 52void _TIFFmemset(tdata_t</b> <i>s</i><b>, int</b> 53<i>c</i><b>, tsize_t</b> <i>n</i><b>); <br> 54void _TIFFmemcpy(tdata_t</b> <i>dest</i><b>, const 55tdata_t</b> <i>src</i><b>, tsize_t</b> <i>n</i><b>); <br> 56int _TIFFmemcmp(const tdata_t</b> <i>s1</i><b>, const 57tdata_t</b> <i>s2</i><b>, tsize_t</b> <i>n</i><b>);</b></p> 58 59<a name="DESCRIPTION"></a> 60<h2>DESCRIPTION</h2> 61 62 63<p style="margin-left:11%; margin-top: 1em">These routines 64are provided for writing portable software that uses 65<i>libtiff</i>; they hide any memory-management related 66issues, such as dealing with segmented architectures found 67on 16-bit machines.</p> 68 69 70<p style="margin-left:11%; margin-top: 1em"><i>_TIFFmalloc</i> 71and <i>_TIFFrealloc</i> are used to dynamically allocate and 72reallocate memory used by <i>libtiff</i>; such as memory 73passed into the I/O routines. Memory allocated through these 74interfaces is released back to the system using the 75<i>_TIFFfree</i> routine.</p> 76 77<p style="margin-left:11%; margin-top: 1em">Memory 78allocated through one of the above interfaces can be set to 79a known value using <i>_TIFFmemset</i>, copied to another 80memory location using <i>_TIFFmemcpy</i>, or compared for 81equality using <i>_TIFFmemcmp</i>. These routines conform to 82the equivalent <small>ANSI</small> C routines: 83<i>memset</i>, <i>memcpy</i>, and <i>memcmp</i>, 84repsectively.</p> 85 86<a name="DIAGNOSTICS"></a> 87<h2>DIAGNOSTICS</h2> 88 89 90<p style="margin-left:11%; margin-top: 1em">None.</p> 91 92<a name="SEE ALSO"></a> 93<h2>SEE ALSO</h2> 94 95 96 97<p style="margin-left:11%; margin-top: 1em"><b>malloc</b>(3), 98<b>memory</b>(3), <b>libtiff</b>(3TIFF)</p> 99 100<p style="margin-left:11%; margin-top: 1em">Libtiff library 101home page: <b>http://www.remotesensing.org/libtiff/</b></p> 102<hr> 103</body> 104</html> 105