aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-stream.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-stream.html')
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-stream.html1535
1 files changed, 1535 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-stream.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-stream.html
new file mode 100644
index 0000000..a03c89f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-stream.html
@@ -0,0 +1,1535 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>stream</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7<link rel="start" href="index.html" title="libg3d Reference Manual">
8<link rel="up" href="ch02.html" title="Plugin interface">
9<link rel="prev" href="libg3d-plugins.html" title="plugins">
10<link rel="next" href="libg3d-iff.html" title="iff">
11<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13<link rel="chapter" href="ch01.html" title="Application interface">
14<link rel="chapter" href="ch02.html" title="Plugin interface">
15</head>
16<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
17<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
18<tr valign="middle">
19<td><a accesskey="p" href="libg3d-plugins.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
20<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
21<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
22<th width="100%" align="center">libg3d Reference Manual</th>
23<td><a accesskey="n" href="libg3d-iff.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
24</tr>
25<tr><td colspan="5" class="shortcuts"><nobr><a href="#libg3d-stream.synopsis" class="shortcut">Top</a>
26  | 
27 <a href="#libg3d-stream.description" class="shortcut">Description</a></nobr></td></tr>
28</table>
29<div class="refentry" lang="en">
30<a name="libg3d-stream"></a><div class="titlepage"></div>
31<div class="refnamediv"><table width="100%"><tr>
32<td valign="top">
33<h2><span class="refentrytitle"><a name="libg3d-stream.top_of_page"></a>stream</span></h2>
34<p>stream — I/O abstraction layer for plugins</p>
35</td>
36<td valign="top" align="right"></td>
37</tr></table></div>
38<div class="refsynopsisdiv">
39<a name="libg3d-stream.synopsis"></a><h2>Synopsis</h2>
40<pre class="synopsis">
41
42#include &lt;g3d/stream.h&gt;
43
44 <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>;
45<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-open-file" title="g3d_stream_open_file ()">g3d_stream_open_file</a> (const <a
46href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
47>gchar</a> *filename,
48 const <a
49href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
50>gchar</a> *mode);
51<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-open-structured-file" title="g3d_stream_open_structured_file ()">g3d_stream_open_structured_file</a> (const <a
52href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
53>gchar</a> *filename,
54 const <a
55href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
56>gchar</a> *subfile);
57<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-open-structured-file-from-stream" title="g3d_stream_open_structured_file_from_stream ()">g3d_stream_open_structured_file_from_stream</a>
58 (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
59 const <a
60href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
61>gchar</a> *subfile);
62<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-open-zip" title="g3d_stream_open_zip ()">g3d_stream_open_zip</a> (const <a
63href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
64>gchar</a> *filename,
65 const <a
66href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
67>gchar</a> *subfile);
68<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-open-zip-from-stream" title="g3d_stream_open_zip_from_stream ()">g3d_stream_open_zip_from_stream</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
69 const <a
70href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
71>gchar</a> *subfile);
72<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-open-gzip-from-stream" title="g3d_stream_open_gzip_from_stream ()">g3d_stream_open_gzip_from_stream</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
73<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-from-buffer" title="g3d_stream_from_buffer ()">g3d_stream_from_buffer</a> (<a
74href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"
75>guint8</a> *buffer,
76 <a
77href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
78>gsize</a> size,
79 const <a
80href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
81>gchar</a> *title,
82 <a
83href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
84>gboolean</a> free_buffer);
85<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-zlib-inflate-stream" title="g3d_stream_zlib_inflate_stream ()">g3d_stream_zlib_inflate_stream</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
86 <a
87href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
88>gsize</a> cmp_size);
89<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-new-custom" title="g3d_stream_new_custom ()">g3d_stream_new_custom</a> (<a
90href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
91>guint32</a> flags,
92 const <a
93href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
94>gchar</a> *uri,
95 <a class="link" href="libg3d-stream.html#G3DStreamReadFunc" title="G3DStreamReadFunc ()">G3DStreamReadFunc</a> readfunc,
96 <a class="link" href="libg3d-stream.html#G3DStreamReadLineFunc" title="G3DStreamReadLineFunc ()">G3DStreamReadLineFunc</a> readlinefunc,
97 <a class="link" href="libg3d-stream.html#G3DStreamSeekFunc" title="G3DStreamSeekFunc ()">G3DStreamSeekFunc</a> seekfunc,
98 <a class="link" href="libg3d-stream.html#G3DStreamTellFunc" title="G3DStreamTellFunc ()">G3DStreamTellFunc</a> tellfunc,
99 <a class="link" href="libg3d-stream.html#G3DStreamSizeFunc" title="G3DStreamSizeFunc ()">G3DStreamSizeFunc</a> sizefunc,
100 <a class="link" href="libg3d-stream.html#G3DStreamEofFunc" title="G3DStreamEofFunc ()">G3DStreamEofFunc</a> eoffunc,
101 <a class="link" href="libg3d-stream.html#G3DStreamCloseFunc" title="G3DStreamCloseFunc ()">G3DStreamCloseFunc</a> closefunc,
102 <a
103href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
104>gpointer</a> data);
105<a
106href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
107>gint</a> <a class="link" href="libg3d-stream.html#g3d-stream-close" title="g3d_stream_close ()">g3d_stream_close</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
108<a
109href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
110>gint</a> <a class="link" href="libg3d-stream.html#g3d-stream-skip" title="g3d_stream_skip ()">g3d_stream_skip</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
111 <a
112href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
113>goffset</a> offset);
114<a
115href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
116>gint</a> <a class="link" href="libg3d-stream.html#g3d-stream-seek" title="g3d_stream_seek ()">g3d_stream_seek</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
117 <a
118href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
119>goffset</a> offset,
120 <a
121href="/usr/share/gtk-doc/html/glib/glib-IO-Channels.html#GSeekType"
122>GSeekType</a> whence);
123<a
124href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
125>goffset</a> <a class="link" href="libg3d-stream.html#g3d-stream-tell" title="g3d_stream_tell ()">g3d_stream_tell</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
126<a
127href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
128>goffset</a> <a class="link" href="libg3d-stream.html#g3d-stream-size" title="g3d_stream_size ()">g3d_stream_size</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
129<a
130href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
131>gboolean</a> <a class="link" href="libg3d-stream.html#g3d-stream-eof" title="g3d_stream_eof ()">g3d_stream_eof</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
132<a
133href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
134>gboolean</a> <a class="link" href="libg3d-stream.html#g3d-stream-is-seekable" title="g3d_stream_is_seekable ()">g3d_stream_is_seekable</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
135<a
136href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
137>gchar</a>* <a class="link" href="libg3d-stream.html#g3d-stream-get-uri" title="g3d_stream_get_uri ()">g3d_stream_get_uri</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
138<a
139href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
140>guint32</a> <a class="link" href="libg3d-stream.html#g3d-stream-line" title="g3d_stream_line ()">g3d_stream_line</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
141<a
142href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
143>gsize</a> <a class="link" href="libg3d-stream.html#g3d-stream-read" title="g3d_stream_read ()">g3d_stream_read</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
144 <a
145href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
146>gpointer</a> ptr,
147 <a
148href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
149>gsize</a> size);
150<a
151href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
152>gchar</a>* <a class="link" href="libg3d-stream.html#g3d-stream-read-line" title="g3d_stream_read_line ()">g3d_stream_read_line</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
153 <a
154href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
155>gchar</a> *buf,
156 <a
157href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
158>gsize</a> size);
159<a
160href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
161>gint32</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-int8" title="g3d_stream_read_int8 ()">g3d_stream_read_int8</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
162<a
163href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
164>gint32</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-int16-be" title="g3d_stream_read_int16_be ()">g3d_stream_read_int16_be</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
165<a
166href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
167>gint32</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-int16-le" title="g3d_stream_read_int16_le ()">g3d_stream_read_int16_le</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
168<a
169href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
170>gint32</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-int32-be" title="g3d_stream_read_int32_be ()">g3d_stream_read_int32_be</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
171<a
172href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
173>gint32</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-int32-le" title="g3d_stream_read_int32_le ()">g3d_stream_read_int32_le</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
174<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-float-be" title="g3d_stream_read_float_be ()">g3d_stream_read_float_be</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
175<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-float-le" title="g3d_stream_read_float_le ()">g3d_stream_read_float_le</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
176<a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-double-be" title="g3d_stream_read_double_be ()">g3d_stream_read_double_be</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
177<a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-double-le" title="g3d_stream_read_double_le ()">g3d_stream_read_double_le</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
178<a
179href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
180>gint32</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-cstr" title="g3d_stream_read_cstr ()">g3d_stream_read_cstr</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
181 <a
182href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
183>gchar</a> *buffer,
184 <a
185href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
186>gint32</a> max_len);
187<a
188href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
189>gint</a> (<a class="link" href="libg3d-stream.html#G3DStreamCloseFunc" title="G3DStreamCloseFunc ()">*G3DStreamCloseFunc</a>) (<a
190href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
191>gpointer</a> data);
192<a
193href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
194>gboolean</a> (<a class="link" href="libg3d-stream.html#G3DStreamEofFunc" title="G3DStreamEofFunc ()">*G3DStreamEofFunc</a>) (<a
195href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
196>gpointer</a> data);
197<a
198href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
199>gsize</a> (<a class="link" href="libg3d-stream.html#G3DStreamReadFunc" title="G3DStreamReadFunc ()">*G3DStreamReadFunc</a>) (<a
200href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
201>gpointer</a> ptr,
202 <a
203href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
204>gsize</a> size,
205 <a
206href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
207>gpointer</a> data);
208<a
209href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
210>gchar</a>* (<a class="link" href="libg3d-stream.html#G3DStreamReadLineFunc" title="G3DStreamReadLineFunc ()">*G3DStreamReadLineFunc</a>) (<a
211href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
212>gchar</a> *buf,
213 <a
214href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
215>gsize</a> size,
216 <a
217href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
218>gpointer</a> data);
219<a
220href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
221>gint</a> (<a class="link" href="libg3d-stream.html#G3DStreamSeekFunc" title="G3DStreamSeekFunc ()">*G3DStreamSeekFunc</a>) (<a
222href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
223>gpointer</a> data,
224 <a
225href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
226>goffset</a> offset,
227 <a
228href="/usr/share/gtk-doc/html/glib/glib-IO-Channels.html#GSeekType"
229>GSeekType</a> whence);
230<a
231href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
232>goffset</a> (<a class="link" href="libg3d-stream.html#G3DStreamSizeFunc" title="G3DStreamSizeFunc ()">*G3DStreamSizeFunc</a>) (<a
233href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
234>gpointer</a> data);
235<a
236href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
237>goffset</a> (<a class="link" href="libg3d-stream.html#G3DStreamTellFunc" title="G3DStreamTellFunc ()">*G3DStreamTellFunc</a>) (<a
238href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
239>gpointer</a> data);
240</pre>
241</div>
242<div class="refsect1" lang="en">
243<a name="libg3d-stream.description"></a><h2>Description</h2>
244<p>
245A stream is an abstraction for data input. It enables plugins to read
246data from a file, a memory buffer, a container file or some other medium.</p>
247<p>
248
249</p>
250</div>
251<div class="refsect1" lang="en">
252<a name="libg3d-stream.details"></a><h2>Details</h2>
253<div class="refsect2" lang="en">
254<a name="G3DStream"></a><h3>G3DStream</h3>
255<pre class="programlisting">typedef struct {
256} G3DStream;
257</pre>
258<p>
259An abstraction of input handling.</p>
260<p>
261
262</p>
263</div>
264<hr>
265<div class="refsect2" lang="en">
266<a name="g3d-stream-open-file"></a><h3>g3d_stream_open_file ()</h3>
267<pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_open_file (const <a
268href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
269>gchar</a> *filename,
270 const <a
271href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
272>gchar</a> *mode);</pre>
273<p>
274Opens a file with the C stdio routines.</p>
275<p>
276
277</p>
278<div class="variablelist"><table border="0">
279<col align="left" valign="top">
280<tbody>
281<tr>
282<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
283<td> the name of the file to open
284</td>
285</tr>
286<tr>
287<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
288<td> the mode to open the file, as given to <code class="function">fopen()</code>
289</td>
290</tr>
291<tr>
292<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
293<td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error.
294</td>
295</tr>
296</tbody>
297</table></div>
298</div>
299<hr>
300<div class="refsect2" lang="en">
301<a name="g3d-stream-open-structured-file"></a><h3>g3d_stream_open_structured_file ()</h3>
302<pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_open_structured_file (const <a
303href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
304>gchar</a> *filename,
305 const <a
306href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
307>gchar</a> *subfile);</pre>
308<p>
309Open a file within a Structured File as <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a>.</p>
310<p>
311
312</p>
313<div class="variablelist"><table border="0">
314<col align="left" valign="top">
315<tbody>
316<tr>
317<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
318<td> name of container file
319</td>
320</tr>
321<tr>
322<td><p><span class="term"><em class="parameter"><code>subfile</code></em> :</span></p></td>
323<td> name of (contained) sub-file
324</td>
325</tr>
326<tr>
327<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
328<td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error.
329</td>
330</tr>
331</tbody>
332</table></div>
333</div>
334<hr>
335<div class="refsect2" lang="en">
336<a name="g3d-stream-open-structured-file-from-stream"></a><h3>g3d_stream_open_structured_file_from_stream ()</h3>
337<pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_open_structured_file_from_stream
338 (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
339 const <a
340href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
341>gchar</a> *subfile);</pre>
342<p>
343Open a file within a Structured File which is opened as a stream. At the
344moment this only works for streams opened by <a class="link" href="libg3d-stream.html#g3d-stream-open-file" title="g3d_stream_open_file ()"><code class="function">g3d_stream_open_file()</code></a> as
345the file is directly opened again.</p>
346<p>
347
348</p>
349<div class="variablelist"><table border="0">
350<col align="left" valign="top">
351<tbody>
352<tr>
353<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
354<td> stream of container file
355</td>
356</tr>
357<tr>
358<td><p><span class="term"><em class="parameter"><code>subfile</code></em> :</span></p></td>
359<td> name of (contained) sub-file
360</td>
361</tr>
362<tr>
363<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
364<td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error.
365</td>
366</tr>
367</tbody>
368</table></div>
369</div>
370<hr>
371<div class="refsect2" lang="en">
372<a name="g3d-stream-open-zip"></a><h3>g3d_stream_open_zip ()</h3>
373<pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_open_zip (const <a
374href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
375>gchar</a> *filename,
376 const <a
377href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
378>gchar</a> *subfile);</pre>
379<p>
380Open a file within a Zip archive.</p>
381<p>
382
383</p>
384<div class="variablelist"><table border="0">
385<col align="left" valign="top">
386<tbody>
387<tr>
388<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
389<td> name of container file
390</td>
391</tr>
392<tr>
393<td><p><span class="term"><em class="parameter"><code>subfile</code></em> :</span></p></td>
394<td> name of (contained) sub-file
395</td>
396</tr>
397<tr>
398<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
399<td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error.
400</td>
401</tr>
402</tbody>
403</table></div>
404</div>
405<hr>
406<div class="refsect2" lang="en">
407<a name="g3d-stream-open-zip-from-stream"></a><h3>g3d_stream_open_zip_from_stream ()</h3>
408<pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_open_zip_from_stream (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
409 const <a
410href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
411>gchar</a> *subfile);</pre>
412<p>
413Open a file within a Zip archive which is opened as a stream. At the
414moment this only works for streams opened by <a class="link" href="libg3d-stream.html#g3d-stream-open-file" title="g3d_stream_open_file ()"><code class="function">g3d_stream_open_file()</code></a> as
415the file is directly opened again.</p>
416<p>
417
418</p>
419<div class="variablelist"><table border="0">
420<col align="left" valign="top">
421<tbody>
422<tr>
423<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
424<td> stream of container file
425</td>
426</tr>
427<tr>
428<td><p><span class="term"><em class="parameter"><code>subfile</code></em> :</span></p></td>
429<td> name of (contained) sub-file
430</td>
431</tr>
432<tr>
433<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
434<td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error.
435</td>
436</tr>
437</tbody>
438</table></div>
439</div>
440<hr>
441<div class="refsect2" lang="en">
442<a name="g3d-stream-open-gzip-from-stream"></a><h3>g3d_stream_open_gzip_from_stream ()</h3>
443<pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_open_gzip_from_stream (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
444<p>
445Reads data from a gzip-compressed stream.</p>
446<p>
447
448</p>
449<div class="variablelist"><table border="0">
450<col align="left" valign="top">
451<tbody>
452<tr>
453<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
454<td> stream to read from
455</td>
456</tr>
457<tr>
458<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
459<td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error.
460</td>
461</tr>
462</tbody>
463</table></div>
464</div>
465<hr>
466<div class="refsect2" lang="en">
467<a name="g3d-stream-from-buffer"></a><h3>g3d_stream_from_buffer ()</h3>
468<pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_from_buffer (<a
469href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"
470>guint8</a> *buffer,
471 <a
472href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
473>gsize</a> size,
474 const <a
475href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
476>gchar</a> *title,
477 <a
478href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
479>gboolean</a> free_buffer);</pre>
480<p>
481Use a buffer in memory as <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a>.</p>
482<p>
483
484</p>
485<div class="variablelist"><table border="0">
486<col align="left" valign="top">
487<tbody>
488<tr>
489<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
490<td> memory buffer to use
491</td>
492</tr>
493<tr>
494<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
495<td> size of buffer
496</td>
497</tr>
498<tr>
499<td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td>
500<td> optional title of stream, may be NULL
501</td>
502</tr>
503<tr>
504<td><p><span class="term"><em class="parameter"><code>free_buffer</code></em> :</span></p></td>
505<td> whether to free the memory with <a
506href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"
507><code class="function">g_free()</code></a> on <a class="link" href="libg3d-stream.html#g3d-stream-close" title="g3d_stream_close ()"><code class="function">g3d_stream_close()</code></a>
508</td>
509</tr>
510<tr>
511<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
512<td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error.
513</td>
514</tr>
515</tbody>
516</table></div>
517</div>
518<hr>
519<div class="refsect2" lang="en">
520<a name="g3d-stream-zlib-inflate-stream"></a><h3>g3d_stream_zlib_inflate_stream ()</h3>
521<pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_zlib_inflate_stream (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
522 <a
523href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
524>gsize</a> cmp_size);</pre>
525<p>
526Opens a new stream to decompress zlib-deflated parts of a stream.</p>
527<p>
528
529</p>
530<div class="variablelist"><table border="0">
531<col align="left" valign="top">
532<tbody>
533<tr>
534<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
535<td> a parent stream
536</td>
537</tr>
538<tr>
539<td><p><span class="term"><em class="parameter"><code>cmp_size</code></em> :</span></p></td>
540<td> the compressed size of the deflated part
541</td>
542</tr>
543<tr>
544<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
545<td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error
546</td>
547</tr>
548</tbody>
549</table></div>
550</div>
551<hr>
552<div class="refsect2" lang="en">
553<a name="g3d-stream-new-custom"></a><h3>g3d_stream_new_custom ()</h3>
554<pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_new_custom (<a
555href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
556>guint32</a> flags,
557 const <a
558href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
559>gchar</a> *uri,
560 <a class="link" href="libg3d-stream.html#G3DStreamReadFunc" title="G3DStreamReadFunc ()">G3DStreamReadFunc</a> readfunc,
561 <a class="link" href="libg3d-stream.html#G3DStreamReadLineFunc" title="G3DStreamReadLineFunc ()">G3DStreamReadLineFunc</a> readlinefunc,
562 <a class="link" href="libg3d-stream.html#G3DStreamSeekFunc" title="G3DStreamSeekFunc ()">G3DStreamSeekFunc</a> seekfunc,
563 <a class="link" href="libg3d-stream.html#G3DStreamTellFunc" title="G3DStreamTellFunc ()">G3DStreamTellFunc</a> tellfunc,
564 <a class="link" href="libg3d-stream.html#G3DStreamSizeFunc" title="G3DStreamSizeFunc ()">G3DStreamSizeFunc</a> sizefunc,
565 <a class="link" href="libg3d-stream.html#G3DStreamEofFunc" title="G3DStreamEofFunc ()">G3DStreamEofFunc</a> eoffunc,
566 <a class="link" href="libg3d-stream.html#G3DStreamCloseFunc" title="G3DStreamCloseFunc ()">G3DStreamCloseFunc</a> closefunc,
567 <a
568href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
569>gpointer</a> data);</pre>
570<p>
571Creates a new <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> with custom callback functions.</p>
572<p>
573
574</p>
575<div class="variablelist"><table border="0">
576<col align="left" valign="top">
577<tbody>
578<tr>
579<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
580<td> stream capability flags
581</td>
582</tr>
583<tr>
584<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
585<td> URI of new stream, must not be NULL
586</td>
587</tr>
588<tr>
589<td><p><span class="term"><em class="parameter"><code>readfunc</code></em> :</span></p></td>
590<td> read callback function
591</td>
592</tr>
593<tr>
594<td><p><span class="term"><em class="parameter"><code>readlinefunc</code></em> :</span></p></td>
595<td> read line callback function, may be NULL in which case
596line reading is emulated with <a class="link" href="libg3d-stream.html#g3d-stream-read" title="g3d_stream_read ()"><code class="function">g3d_stream_read()</code></a>
597</td>
598</tr>
599<tr>
600<td><p><span class="term"><em class="parameter"><code>seekfunc</code></em> :</span></p></td>
601<td> seek callback function
602</td>
603</tr>
604<tr>
605<td><p><span class="term"><em class="parameter"><code>tellfunc</code></em> :</span></p></td>
606<td> tell callback function
607</td>
608</tr>
609<tr>
610<td><p><span class="term"><em class="parameter"><code>sizefunc</code></em> :</span></p></td>
611<td> size callback function
612</td>
613</tr>
614<tr>
615<td><p><span class="term"><em class="parameter"><code>eoffunc</code></em> :</span></p></td>
616<td> end-of-file callback function
617</td>
618</tr>
619<tr>
620<td><p><span class="term"><em class="parameter"><code>closefunc</code></em> :</span></p></td>
621<td> close callback function
622</td>
623</tr>
624<tr>
625<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
626<td> opaque data for all callback functions
627</td>
628</tr>
629<tr>
630<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
631<td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error.
632</td>
633</tr>
634</tbody>
635</table></div>
636</div>
637<hr>
638<div class="refsect2" lang="en">
639<a name="g3d-stream-close"></a><h3>g3d_stream_close ()</h3>
640<pre class="programlisting"><a
641href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
642>gint</a> g3d_stream_close (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
643<p>
644Closes an open stream.</p>
645<p>
646
647</p>
648<div class="variablelist"><table border="0">
649<col align="left" valign="top">
650<tbody>
651<tr>
652<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
653<td> the stream
654</td>
655</tr>
656<tr>
657<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
658<td> 0 on success.
659</td>
660</tr>
661</tbody>
662</table></div>
663</div>
664<hr>
665<div class="refsect2" lang="en">
666<a name="g3d-stream-skip"></a><h3>g3d_stream_skip ()</h3>
667<pre class="programlisting"><a
668href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
669>gint</a> g3d_stream_skip (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
670 <a
671href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
672>goffset</a> offset);</pre>
673<p>
674Skip a number of bytes (&gt;= 0) in stream even if it does not support
675seeking.</p>
676<p>
677
678</p>
679<div class="variablelist"><table border="0">
680<col align="left" valign="top">
681<tbody>
682<tr>
683<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
684<td> stream to skip bytes from
685</td>
686</tr>
687<tr>
688<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
689<td> number of bytes to skip
690</td>
691</tr>
692<tr>
693<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
694<td> 0 on success, -1 else
695</td>
696</tr>
697</tbody>
698</table></div>
699</div>
700<hr>
701<div class="refsect2" lang="en">
702<a name="g3d-stream-seek"></a><h3>g3d_stream_seek ()</h3>
703<pre class="programlisting"><a
704href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
705>gint</a> g3d_stream_seek (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
706 <a
707href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
708>goffset</a> offset,
709 <a
710href="/usr/share/gtk-doc/html/glib/glib-IO-Channels.html#GSeekType"
711>GSeekType</a> whence);</pre>
712<p>
713Moves around the current position in the stream.</p>
714<p>
715
716</p>
717<div class="variablelist"><table border="0">
718<col align="left" valign="top">
719<tbody>
720<tr>
721<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
722<td> stream to seek in
723</td>
724</tr>
725<tr>
726<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
727<td> number of bytes to seek
728</td>
729</tr>
730<tr>
731<td><p><span class="term"><em class="parameter"><code>whence</code></em> :</span></p></td>
732<td> seek type
733</td>
734</tr>
735<tr>
736<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
737<td> 0 on success, -1 else
738</td>
739</tr>
740</tbody>
741</table></div>
742</div>
743<hr>
744<div class="refsect2" lang="en">
745<a name="g3d-stream-tell"></a><h3>g3d_stream_tell ()</h3>
746<pre class="programlisting"><a
747href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
748>goffset</a> g3d_stream_tell (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
749<p>
750Tells the current position in the stream.</p>
751<p>
752
753</p>
754<div class="variablelist"><table border="0">
755<col align="left" valign="top">
756<tbody>
757<tr>
758<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
759<td> stream to get position from
760</td>
761</tr>
762<tr>
763<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
764<td> current stream position
765</td>
766</tr>
767</tbody>
768</table></div>
769</div>
770<hr>
771<div class="refsect2" lang="en">
772<a name="g3d-stream-size"></a><h3>g3d_stream_size ()</h3>
773<pre class="programlisting"><a
774href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
775>goffset</a> g3d_stream_size (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
776<p>
777Get the size in bytes of a stream.</p>
778<p>
779
780</p>
781<div class="variablelist"><table border="0">
782<col align="left" valign="top">
783<tbody>
784<tr>
785<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
786<td> stream to get size from
787</td>
788</tr>
789<tr>
790<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
791<td> size of stream in bytes
792</td>
793</tr>
794</tbody>
795</table></div>
796</div>
797<hr>
798<div class="refsect2" lang="en">
799<a name="g3d-stream-eof"></a><h3>g3d_stream_eof ()</h3>
800<pre class="programlisting"><a
801href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
802>gboolean</a> g3d_stream_eof (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
803<p>
804Checks whether the stream has reached its end.</p>
805<p>
806
807</p>
808<div class="variablelist"><table border="0">
809<col align="left" valign="top">
810<tbody>
811<tr>
812<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
813<td> the stream
814</td>
815</tr>
816<tr>
817<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
818<td> TRUE if no more data can be read, FALSE else.
819</td>
820</tr>
821</tbody>
822</table></div>
823</div>
824<hr>
825<div class="refsect2" lang="en">
826<a name="g3d-stream-is-seekable"></a><h3>g3d_stream_is_seekable ()</h3>
827<pre class="programlisting"><a
828href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
829>gboolean</a> g3d_stream_is_seekable (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
830<p>
831Get information whether it is possible to seek in a stream.</p>
832<p>
833
834</p>
835<div class="variablelist"><table border="0">
836<col align="left" valign="top">
837<tbody>
838<tr>
839<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
840<td> the stream
841</td>
842</tr>
843<tr>
844<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
845<td> TRUE if seekable, FALSE else
846</td>
847</tr>
848</tbody>
849</table></div>
850</div>
851<hr>
852<div class="refsect2" lang="en">
853<a name="g3d-stream-get-uri"></a><h3>g3d_stream_get_uri ()</h3>
854<pre class="programlisting"><a
855href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
856>gchar</a>* g3d_stream_get_uri (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
857<p>
858Get the URI of a stream</p>
859<p>
860
861</p>
862<div class="variablelist"><table border="0">
863<col align="left" valign="top">
864<tbody>
865<tr>
866<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
867<td> the stream
868</td>
869</tr>
870<tr>
871<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
872<td> a non-NULL, zero-terminated string containing the URI of the
873string. This return value should not be freed.
874</td>
875</tr>
876</tbody>
877</table></div>
878</div>
879<hr>
880<div class="refsect2" lang="en">
881<a name="g3d-stream-line"></a><h3>g3d_stream_line ()</h3>
882<pre class="programlisting"><a
883href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
884>guint32</a> g3d_stream_line (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
885<p>
886Get the current line number from stream. This only works if line are
887consequently read with <a class="link" href="libg3d-stream.html#g3d-stream-read-line" title="g3d_stream_read_line ()"><code class="function">g3d_stream_read_line()</code></a>, so it's only applicable
888for text streams.</p>
889<p>
890
891</p>
892<div class="variablelist"><table border="0">
893<col align="left" valign="top">
894<tbody>
895<tr>
896<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
897<td> stream to get line from
898</td>
899</tr>
900<tr>
901<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
902<td> current line number, may be 0
903</td>
904</tr>
905</tbody>
906</table></div>
907</div>
908<hr>
909<div class="refsect2" lang="en">
910<a name="g3d-stream-read"></a><h3>g3d_stream_read ()</h3>
911<pre class="programlisting"><a
912href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
913>gsize</a> g3d_stream_read (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
914 <a
915href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
916>gpointer</a> ptr,
917 <a
918href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
919>gsize</a> size);</pre>
920<p>
921Reads a number of bytes from the stream.</p>
922<p>
923
924</p>
925<div class="variablelist"><table border="0">
926<col align="left" valign="top">
927<tbody>
928<tr>
929<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
930<td> the stream to read from
931</td>
932</tr>
933<tr>
934<td><p><span class="term"><em class="parameter"><code>ptr</code></em> :</span></p></td>
935<td> pointer to memory storage
936</td>
937</tr>
938<tr>
939<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
940<td> number of bytes to read
941</td>
942</tr>
943<tr>
944<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
945<td> number of bytes successfully read.
946</td>
947</tr>
948</tbody>
949</table></div>
950</div>
951<hr>
952<div class="refsect2" lang="en">
953<a name="g3d-stream-read-line"></a><h3>g3d_stream_read_line ()</h3>
954<pre class="programlisting"><a
955href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
956>gchar</a>* g3d_stream_read_line (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
957 <a
958href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
959>gchar</a> *buf,
960 <a
961href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
962>gsize</a> size);</pre>
963<p>
964Read a line (terminated by a newline character or end of file) from a
965stream.</p>
966<p>
967
968</p>
969<div class="variablelist"><table border="0">
970<col align="left" valign="top">
971<tbody>
972<tr>
973<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
974<td> stream to read a line from
975</td>
976</tr>
977<tr>
978<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
979<td> an allocated buffer to be filled
980</td>
981</tr>
982<tr>
983<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
984<td> maximum length of line including terminating zero
985</td>
986</tr>
987<tr>
988<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
989<td> the read line or NULL in case of an error.
990</td>
991</tr>
992</tbody>
993</table></div>
994</div>
995<hr>
996<div class="refsect2" lang="en">
997<a name="g3d-stream-read-int8"></a><h3>g3d_stream_read_int8 ()</h3>
998<pre class="programlisting"><a
999href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
1000>gint32</a> g3d_stream_read_int8 (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
1001<p>
1002Read a 1 byte signed integer from file.</p>
1003<p>
1004
1005</p>
1006<div class="variablelist"><table border="0">
1007<col align="left" valign="top">
1008<tbody>
1009<tr>
1010<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1011<td> the stream to read from
1012</td>
1013</tr>
1014<tr>
1015<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1016<td> The read value, 0 in case of error
1017</td>
1018</tr>
1019</tbody>
1020</table></div>
1021</div>
1022<hr>
1023<div class="refsect2" lang="en">
1024<a name="g3d-stream-read-int16-be"></a><h3>g3d_stream_read_int16_be ()</h3>
1025<pre class="programlisting"><a
1026href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
1027>gint32</a> g3d_stream_read_int16_be (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
1028<p>
1029Read a 2 byte big-endian signed integer from file.</p>
1030<p>
1031
1032</p>
1033<div class="variablelist"><table border="0">
1034<col align="left" valign="top">
1035<tbody>
1036<tr>
1037<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1038<td> the stream to read from
1039</td>
1040</tr>
1041<tr>
1042<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1043<td> The read value, 0 in case of error
1044</td>
1045</tr>
1046</tbody>
1047</table></div>
1048</div>
1049<hr>
1050<div class="refsect2" lang="en">
1051<a name="g3d-stream-read-int16-le"></a><h3>g3d_stream_read_int16_le ()</h3>
1052<pre class="programlisting"><a
1053href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
1054>gint32</a> g3d_stream_read_int16_le (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
1055<p>
1056Read a 2 byte little-endian signed integer from file.</p>
1057<p>
1058
1059</p>
1060<div class="variablelist"><table border="0">
1061<col align="left" valign="top">
1062<tbody>
1063<tr>
1064<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1065<td> the stream to read from
1066</td>
1067</tr>
1068<tr>
1069<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1070<td> The read value, 0 in case of error
1071</td>
1072</tr>
1073</tbody>
1074</table></div>
1075</div>
1076<hr>
1077<div class="refsect2" lang="en">
1078<a name="g3d-stream-read-int32-be"></a><h3>g3d_stream_read_int32_be ()</h3>
1079<pre class="programlisting"><a
1080href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
1081>gint32</a> g3d_stream_read_int32_be (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
1082<p>
1083Read a 4 byte big-endian signed integer from file.</p>
1084<p>
1085
1086</p>
1087<div class="variablelist"><table border="0">
1088<col align="left" valign="top">
1089<tbody>
1090<tr>
1091<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1092<td> the stream to read from
1093</td>
1094</tr>
1095<tr>
1096<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1097<td> The read value, 0 in case of error
1098</td>
1099</tr>
1100</tbody>
1101</table></div>
1102</div>
1103<hr>
1104<div class="refsect2" lang="en">
1105<a name="g3d-stream-read-int32-le"></a><h3>g3d_stream_read_int32_le ()</h3>
1106<pre class="programlisting"><a
1107href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
1108>gint32</a> g3d_stream_read_int32_le (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
1109<p>
1110Read a 4 byte little-endian signed integer from file.</p>
1111<p>
1112
1113</p>
1114<div class="variablelist"><table border="0">
1115<col align="left" valign="top">
1116<tbody>
1117<tr>
1118<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1119<td> the stream to read from
1120</td>
1121</tr>
1122<tr>
1123<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1124<td> The read value, 0 in case of error
1125</td>
1126</tr>
1127</tbody>
1128</table></div>
1129</div>
1130<hr>
1131<div class="refsect2" lang="en">
1132<a name="g3d-stream-read-float-be"></a><h3>g3d_stream_read_float_be ()</h3>
1133<pre class="programlisting"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g3d_stream_read_float_be (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
1134<p>
1135Read a 4 byte big-endian floating point number from file.</p>
1136<p>
1137
1138</p>
1139<div class="variablelist"><table border="0">
1140<col align="left" valign="top">
1141<tbody>
1142<tr>
1143<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1144<td> the stream to read from
1145</td>
1146</tr>
1147<tr>
1148<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1149<td> The read value, 0 in case of error
1150</td>
1151</tr>
1152</tbody>
1153</table></div>
1154</div>
1155<hr>
1156<div class="refsect2" lang="en">
1157<a name="g3d-stream-read-float-le"></a><h3>g3d_stream_read_float_le ()</h3>
1158<pre class="programlisting"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g3d_stream_read_float_le (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
1159<p>
1160Read a 4 byte little-endian floating point number from file.</p>
1161<p>
1162
1163</p>
1164<div class="variablelist"><table border="0">
1165<col align="left" valign="top">
1166<tbody>
1167<tr>
1168<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1169<td> the stream to read from
1170</td>
1171</tr>
1172<tr>
1173<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1174<td> The read value, 0 in case of error
1175</td>
1176</tr>
1177</tbody>
1178</table></div>
1179</div>
1180<hr>
1181<div class="refsect2" lang="en">
1182<a name="g3d-stream-read-double-be"></a><h3>g3d_stream_read_double_be ()</h3>
1183<pre class="programlisting"><a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> g3d_stream_read_double_be (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
1184<p>
1185Read a 8 byte big-endian double-precision floating point number from file.</p>
1186<p>
1187
1188</p>
1189<div class="variablelist"><table border="0">
1190<col align="left" valign="top">
1191<tbody>
1192<tr>
1193<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1194<td> the stream to read from
1195</td>
1196</tr>
1197<tr>
1198<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1199<td> The read value, 0 in case of error
1200</td>
1201</tr>
1202</tbody>
1203</table></div>
1204</div>
1205<hr>
1206<div class="refsect2" lang="en">
1207<a name="g3d-stream-read-double-le"></a><h3>g3d_stream_read_double_le ()</h3>
1208<pre class="programlisting"><a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> g3d_stream_read_double_le (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
1209<p>
1210Read a 8 byte little-endian double-precision floating point number from
1211file.</p>
1212<p>
1213
1214</p>
1215<div class="variablelist"><table border="0">
1216<col align="left" valign="top">
1217<tbody>
1218<tr>
1219<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1220<td> the stream to read from
1221</td>
1222</tr>
1223<tr>
1224<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1225<td> The read value, 0 in case of error
1226</td>
1227</tr>
1228</tbody>
1229</table></div>
1230</div>
1231<hr>
1232<div class="refsect2" lang="en">
1233<a name="g3d-stream-read-cstr"></a><h3>g3d_stream_read_cstr ()</h3>
1234<pre class="programlisting"><a
1235href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
1236>gint32</a> g3d_stream_read_cstr (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
1237 <a
1238href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
1239>gchar</a> *buffer,
1240 <a
1241href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
1242>gint32</a> max_len);</pre>
1243<p>
1244Read a string (terminated by '\0') from stream</p>
1245<p>
1246
1247</p>
1248<div class="variablelist"><table border="0">
1249<col align="left" valign="top">
1250<tbody>
1251<tr>
1252<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1253<td> the stream to read from
1254</td>
1255</tr>
1256<tr>
1257<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
1258<td> the buffer to fill
1259</td>
1260</tr>
1261<tr>
1262<td><p><span class="term"><em class="parameter"><code>max_len</code></em> :</span></p></td>
1263<td> maximum number to read from stream
1264</td>
1265</tr>
1266<tr>
1267<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1268<td> number of bytes read from stream
1269</td>
1270</tr>
1271</tbody>
1272</table></div>
1273</div>
1274<hr>
1275<div class="refsect2" lang="en">
1276<a name="G3DStreamCloseFunc"></a><h3>G3DStreamCloseFunc ()</h3>
1277<pre class="programlisting"><a
1278href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
1279>gint</a> (*G3DStreamCloseFunc) (<a
1280href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1281>gpointer</a> data);</pre>
1282<p>
1283Callback function for <a class="link" href="libg3d-stream.html#g3d-stream-close" title="g3d_stream_close ()"><code class="function">g3d_stream_close()</code></a>.</p>
1284<p>
1285
1286</p>
1287<div class="variablelist"><table border="0">
1288<col align="left" valign="top">
1289<tbody>
1290<tr>
1291<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1292<td> opaque stream data
1293</td>
1294</tr>
1295<tr>
1296<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1297<td> 0 on success, -1 else.
1298</td>
1299</tr>
1300</tbody>
1301</table></div>
1302</div>
1303<hr>
1304<div class="refsect2" lang="en">
1305<a name="G3DStreamEofFunc"></a><h3>G3DStreamEofFunc ()</h3>
1306<pre class="programlisting"><a
1307href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
1308>gboolean</a> (*G3DStreamEofFunc) (<a
1309href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1310>gpointer</a> data);</pre>
1311<p>
1312Callback function for <a class="link" href="libg3d-stream.html#g3d-stream-eof" title="g3d_stream_eof ()"><code class="function">g3d_stream_eof()</code></a>.</p>
1313<p>
1314
1315</p>
1316<div class="variablelist"><table border="0">
1317<col align="left" valign="top">
1318<tbody>
1319<tr>
1320<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1321<td> opaque stream data
1322</td>
1323</tr>
1324<tr>
1325<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1326<td> TRUE on stream end-of-file, FALSE else.
1327</td>
1328</tr>
1329</tbody>
1330</table></div>
1331</div>
1332<hr>
1333<div class="refsect2" lang="en">
1334<a name="G3DStreamReadFunc"></a><h3>G3DStreamReadFunc ()</h3>
1335<pre class="programlisting"><a
1336href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
1337>gsize</a> (*G3DStreamReadFunc) (<a
1338href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1339>gpointer</a> ptr,
1340 <a
1341href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
1342>gsize</a> size,
1343 <a
1344href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1345>gpointer</a> data);</pre>
1346<p>
1347Callback function for <a class="link" href="libg3d-stream.html#g3d-stream-read" title="g3d_stream_read ()"><code class="function">g3d_stream_read()</code></a>.</p>
1348<p>
1349
1350</p>
1351<div class="variablelist"><table border="0">
1352<col align="left" valign="top">
1353<tbody>
1354<tr>
1355<td><p><span class="term"><em class="parameter"><code>ptr</code></em> :</span></p></td>
1356<td> buffer to read bytes into
1357</td>
1358</tr>
1359<tr>
1360<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
1361<td> number of bytes to read
1362</td>
1363</tr>
1364<tr>
1365<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1366<td> opaque stream data
1367</td>
1368</tr>
1369<tr>
1370<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1371<td> number of bytes actually read.
1372</td>
1373</tr>
1374</tbody>
1375</table></div>
1376</div>
1377<hr>
1378<div class="refsect2" lang="en">
1379<a name="G3DStreamReadLineFunc"></a><h3>G3DStreamReadLineFunc ()</h3>
1380<pre class="programlisting"><a
1381href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
1382>gchar</a>* (*G3DStreamReadLineFunc) (<a
1383href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
1384>gchar</a> *buf,
1385 <a
1386href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
1387>gsize</a> size,
1388 <a
1389href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1390>gpointer</a> data);</pre>
1391<p>
1392Callback function for <a class="link" href="libg3d-stream.html#g3d-stream-read-line" title="g3d_stream_read_line ()"><code class="function">g3d_stream_read_line()</code></a>.</p>
1393<p>
1394
1395</p>
1396<div class="variablelist"><table border="0">
1397<col align="left" valign="top">
1398<tbody>
1399<tr>
1400<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
1401<td> buffer to read bytes into
1402</td>
1403</tr>
1404<tr>
1405<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
1406<td> maximum size of buffer
1407</td>
1408</tr>
1409<tr>
1410<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1411<td> opaque stream data
1412</td>
1413</tr>
1414<tr>
1415<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1416<td> The line buffer or NULL in case of an error.
1417</td>
1418</tr>
1419</tbody>
1420</table></div>
1421</div>
1422<hr>
1423<div class="refsect2" lang="en">
1424<a name="G3DStreamSeekFunc"></a><h3>G3DStreamSeekFunc ()</h3>
1425<pre class="programlisting"><a
1426href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
1427>gint</a> (*G3DStreamSeekFunc) (<a
1428href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1429>gpointer</a> data,
1430 <a
1431href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
1432>goffset</a> offset,
1433 <a
1434href="/usr/share/gtk-doc/html/glib/glib-IO-Channels.html#GSeekType"
1435>GSeekType</a> whence);</pre>
1436<p>
1437Callback function for <a class="link" href="libg3d-stream.html#g3d-stream-seek" title="g3d_stream_seek ()"><code class="function">g3d_stream_seek()</code></a>.</p>
1438<p>
1439
1440</p>
1441<div class="variablelist"><table border="0">
1442<col align="left" valign="top">
1443<tbody>
1444<tr>
1445<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1446<td> opaque stream data
1447</td>
1448</tr>
1449<tr>
1450<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
1451<td> seek offset
1452</td>
1453</tr>
1454<tr>
1455<td><p><span class="term"><em class="parameter"><code>whence</code></em> :</span></p></td>
1456<td> seek type
1457</td>
1458</tr>
1459<tr>
1460<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1461<td> 0 on success, -1 else.
1462</td>
1463</tr>
1464</tbody>
1465</table></div>
1466</div>
1467<hr>
1468<div class="refsect2" lang="en">
1469<a name="G3DStreamSizeFunc"></a><h3>G3DStreamSizeFunc ()</h3>
1470<pre class="programlisting"><a
1471href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
1472>goffset</a> (*G3DStreamSizeFunc) (<a
1473href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1474>gpointer</a> data);</pre>
1475<p>
1476Callback function for <a class="link" href="libg3d-stream.html#g3d-stream-size" title="g3d_stream_size ()"><code class="function">g3d_stream_size()</code></a>.</p>
1477<p>
1478
1479</p>
1480<div class="variablelist"><table border="0">
1481<col align="left" valign="top">
1482<tbody>
1483<tr>
1484<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1485<td> opaque stream data
1486</td>
1487</tr>
1488<tr>
1489<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1490<td> size of stream.
1491</td>
1492</tr>
1493</tbody>
1494</table></div>
1495</div>
1496<hr>
1497<div class="refsect2" lang="en">
1498<a name="G3DStreamTellFunc"></a><h3>G3DStreamTellFunc ()</h3>
1499<pre class="programlisting"><a
1500href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
1501>goffset</a> (*G3DStreamTellFunc) (<a
1502href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1503>gpointer</a> data);</pre>
1504<p>
1505Callback function for <a class="link" href="libg3d-stream.html#g3d-stream-tell" title="g3d_stream_tell ()"><code class="function">g3d_stream_tell()</code></a>.</p>
1506<p>
1507
1508</p>
1509<div class="variablelist"><table border="0">
1510<col align="left" valign="top">
1511<tbody>
1512<tr>
1513<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1514<td> opaque stream data
1515</td>
1516</tr>
1517<tr>
1518<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1519<td> current stream position.
1520</td>
1521</tr>
1522</tbody>
1523</table></div>
1524</div>
1525</div>
1526<div class="refsect1" lang="en">
1527<a name="libg3d-stream.see-also"></a><h2>See Also</h2>
1528<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a>
1529</div>
1530</div>
1531<div class="footer">
1532<hr>
1533 Generated by GTK-Doc V1.10</div>
1534</body>
1535</html>