1 <!-- Creator : groff version 1.18.1 -->
2 <!-- CreationDate: Sat Feb 24 18:37:16 2007 -->
5 <meta name=
"generator" content=
"groff -Thtml, see www.gnu.org">
6 <meta name=
"Content-Style" content=
"text/css">
11 <h1 align=center
>MEMORY
</h1>
12 <a href=
"#NAME">NAME
</a><br>
13 <a href=
"#SYNOPSIS">SYNOPSIS
</a><br>
14 <a href=
"#DESCRIPTION">DESCRIPTION
</a><br>
15 <a href=
"#DIAGNOSTICS">DIAGNOSTICS
</a><br>
16 <a href=
"#SEE ALSO">SEE ALSO
</a><br>
22 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
23 cols=
"2" cellspacing=
"0" cellpadding=
"0">
24 <tr valign=
"top" align=
"left">
27 <p>_TIFFmalloc, _TIFFrealloc, _TIFFfree, _TIFFmemset,
28 _TIFFmemcpy, _TIFFmemcmp,
− memory management-related
29 functions for use with
<small>TIFF
</small> files
</p>
32 <a name=
"SYNOPSIS"></a>
35 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
36 cols=
"2" cellspacing=
"0" cellpadding=
"0">
37 <tr valign=
"top" align=
"left">
40 <p><b>#include
<tiffio.h
></b></p>
42 <p><b>tdata_t _TIFFmalloc(tsize_t
</b> <i>size
</i><b>);
<br>
43 tdata_t _TIFFrealloc(tdata_t
</b> <i>buffer
</i><b>,
44 tsize_t
</b> <i>size
</i><b>);
<br>
45 void _TIFFfree(tdata_t
</b> <i>buffer
</i><b>);
<br>
46 void _TIFFmemset(tdata_t
</b> <i>s
</i><b>, int
</b>
47 <i>c
</i><b>, tsize_t
</b> <i>n
</i><b>);
<br>
48 void _TIFFmemcpy(tdata_t
</b> <i>dest
</i><b>, const
49 tdata_t
</b> <i>src
</i><b>, tsize_t
</b> <i>n
</i><b>);
<br>
50 int _TIFFmemcmp(const tdata_t
</b> <i>s1
</i><b>, const
51 tdata_t
</b> <i>s2
</i><b>, tsize_t
</b> <i>n
</i><b>);
</b></p>
54 <a name=
"DESCRIPTION"></a>
57 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
58 cols=
"2" cellspacing=
"0" cellpadding=
"0">
59 <tr valign=
"top" align=
"left">
62 <p>These routines are provided for writing portable software
63 that uses
<i>libtiff
</i>; they hide any memory-management
64 related issues, such as dealing with segmented architectures
65 found on
16-bit machines.
</p>
67 <p><i>_TIFFmalloc
</i> and
<i>_TIFFrealloc
</i> are used to
68 dynamically allocate and reallocate memory used by
69 <i>libtiff
</i>; such as memory passed into the I/O routines.
70 Memory allocated through these interfaces is released back
71 to the system using the
<i>_TIFFfree
</i> routine.
</p>
73 <p>Memory allocated through one of the above interfaces can
74 be set to a known value using
<i>_TIFFmemset
</i>, copied to
75 another memory location using
<i>_TIFFmemcpy
</i>, or
76 compared for equality using
<i>_TIFFmemcmp
</i>. These
77 routines conform to the equivalent
<small>ANSI
</small> C
78 routines:
<i>memset
</i>,
<i>memcpy
</i>, and
<i>memcmp
</i>,
82 <a name=
"DIAGNOSTICS"></a>
85 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
86 cols=
"2" cellspacing=
"0" cellpadding=
"0">
87 <tr valign=
"top" align=
"left">
93 <a name=
"SEE ALSO"></a>
96 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
97 cols=
"2" cellspacing=
"0" cellpadding=
"0">
98 <tr valign=
"top" align=
"left">
101 <p><b>malloc
</b>(
3),
<b>memory
</b>(
3),
102 <b>libtiff
</b>(
3TIFF)
</p>
104 <p>Libtiff library home page:
105 <b>http://www.remotesensing.org/libtiff/
</b></p>