1 /* GStreamer byte reader dummy header for gtk-doc
2 * Copyright (C) 2009 Tim-Philipp Müller <tim centricular net>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
20 /* This header is not installed, it just contains stuff for gtk-doc to parse,
21 * in particular docs and some dummy function declarations for the static
22 * inline functions we generate via macros in gstbytereader.h.
25 #error "This header should never be included in code, it is only for gtk-doc"
28 * gst_byte_reader_skip_unchecked:
29 * @reader: a #GstByteReader instance
30 * @nbytes: the number of bytes to skip
32 * Skips @nbytes bytes of the #GstByteReader instance without checking if
33 * there are enough bytes available in the byte reader.
35 void gst_byte_reader_skip_unchecked (GstByteReader * reader, guint nbytes);
38 * gst_byte_reader_get_uint8_unchecked:
39 * @reader: a #GstByteReader instance
41 * Read an unsigned 8 bit integer without checking if there are enough bytes
42 * available in the byte reader and update the current position.
44 * Returns: unsigned 8 bit integer.
47 * gst_byte_reader_peek_uint8_unchecked:
48 * @reader: a #GstByteReader instance
50 * Read an unsigned 8 bit integer without checking if there are enough bytes
51 * available in the byte reader, but do not advance the current read position.
53 * Returns: unsigned 8 bit integer.
56 * gst_byte_reader_get_int8_unchecked:
57 * @reader: a #GstByteReader instance
59 * Read an signed 8 bit integer without checking if there are enough bytes
60 * available in the byte reader and update the current position.
62 * Returns: signed 8 bit integer.
65 * gst_byte_reader_peek_int8_unchecked:
66 * @reader: a #GstByteReader instance
68 * Read an signed 8 bit integer without checking if there are enough bytes
69 * available in the byte reader, but do not advance the current read position.
71 * Returns: signed 8 bit integer.
73 guint8 gst_byte_reader_get_uint8_unchecked (GstByteReader * reader);
74 guint8 gst_byte_reader_peek_uint8_unchecked (GstByteReader * reader);
75 gint8 gst_byte_reader_get_int8_unchecked (GstByteReader * reader);
76 gint8 gst_byte_reader_peek_int8_unchecked (GstByteReader * reader);
79 * gst_byte_reader_get_uint16_le_unchecked:
80 * @reader: a #GstByteReader instance
82 * Read an unsigned 16 bit integer in little endian format without checking
83 * if there are enough bytes available in the byte reader and update the
86 * Returns: unsigned 16 bit integer.
89 * gst_byte_reader_peek_uint16_le_unchecked:
90 * @reader: a #GstByteReader instance
92 * Read an unsigned 16 bit integer in little endian format without checking
93 * if there are enough bytes available in the byte reader, but do not advance
94 * the current position.
96 * Returns: unsigned 16 bit integer.
99 * gst_byte_reader_get_uint16_be_unchecked:
100 * @reader: a #GstByteReader instance
102 * Read an unsigned 16 bit integer in big endian format without checking
103 * if there are enough bytes available in the byte reader and update the
106 * Returns: unsigned 16 bit integer.
109 * gst_byte_reader_peek_uint16_be_unchecked:
110 * @reader: a #GstByteReader instance
112 * Read an unsigned 16 bit integer in big endian format without checking
113 * if there are enough bytes available in the byte reader, but do not advance
114 * the current position.
116 * Returns: unsigned 16 bit integer.
119 * gst_byte_reader_get_int16_le_unchecked:
120 * @reader: a #GstByteReader instance
122 * Read a signed 16 bit integer in little endian format without checking
123 * if there are enough bytes available in the byte reader and update the
126 * Returns: signed 16 bit integer.
129 * gst_byte_reader_peek_int16_le_unchecked:
130 * @reader: a #GstByteReader instance
132 * Read a signed 16 bit integer in little endian format without checking
133 * if there are enough bytes available in the byte reader, but do not advance
134 * the current position.
136 * Returns: signed 16 bit integer.
139 * gst_byte_reader_get_int16_be_unchecked:
140 * @reader: a #GstByteReader instance
142 * Read a signed 16 bit integer in big endian format without checking
143 * if there are enough bytes available in the byte reader and update the
146 * Returns: signed 16 bit integer.
149 * gst_byte_reader_peek_int16_be_unchecked:
150 * @reader: a #GstByteReader instance
152 * Read a signed 16 bit integer in big endian format without checking
153 * if there are enough bytes available in the byte reader, but do not advance
154 * the current position.
156 * Returns: signed 16 bit integer.
158 guint16 gst_byte_reader_get_uint16_le_unchecked (GstByteReader * reader);
159 guint16 gst_byte_reader_get_uint16_be_unchecked (GstByteReader * reader);
160 guint16 gst_byte_reader_peek_uint16_le_unchecked (GstByteReader * reader);
161 guint16 gst_byte_reader_peek_uint16_be_unchecked (GstByteReader * reader);
162 gint16 gst_byte_reader_get_int16_le_unchecked (GstByteReader * reader);
163 gint16 gst_byte_reader_get_int16_be_unchecked (GstByteReader * reader);
164 gint16 gst_byte_reader_peek_int16_le_unchecked (GstByteReader * reader);
165 gint16 gst_byte_reader_peek_int16_be_unchecked (GstByteReader * reader);
168 * gst_byte_reader_get_uint24_le_unchecked:
169 * @reader: a #GstByteReader instance
171 * Read an unsigned 24 bit integer in little endian format without checking
172 * if there are enough bytes available in the byte reader and update the
175 * Returns: unsigned 24 bit integer (as guint32)
178 * gst_byte_reader_peek_uint24_le_unchecked:
179 * @reader: a #GstByteReader instance
181 * Read an unsigned 24 bit integer in little endian format without checking
182 * if there are enough bytes available in the byte reader, but do not advance
183 * the current position.
185 * Returns: unsigned 24 bit integer (as guint32)
188 * gst_byte_reader_get_uint24_be_unchecked:
189 * @reader: a #GstByteReader instance
191 * Read an unsigned 24 bit integer in big endian format without checking
192 * if there are enough bytes available in the byte reader and update the
195 * Returns: unsigned 24 bit integer (as guint32)
198 * gst_byte_reader_peek_uint24_be_unchecked:
199 * @reader: a #GstByteReader instance
201 * Read an unsigned 24 bit integer in big endian format without checking
202 * if there are enough bytes available in the byte reader, but do not advance
203 * the current position.
205 * Returns: unsigned 24 bit integer (as guint32)
208 * gst_byte_reader_get_int24_le_unchecked:
209 * @reader: a #GstByteReader instance
211 * Read a signed 24 bit integer in little endian format without checking
212 * if there are enough bytes available in the byte reader and update the
215 * Returns: signed 24 bit integer (as gint32)
218 * gst_byte_reader_peek_int24_le_unchecked:
219 * @reader: a #GstByteReader instance
221 * Read a signed 24 bit integer in little endian format without checking
222 * if there are enough bytes available in the byte reader, but do not advance
223 * the current position.
225 * Returns: signed 24 bit integer (as gint32)
228 * gst_byte_reader_get_int24_be_unchecked:
229 * @reader: a #GstByteReader instance
231 * Read a signed 24 bit integer in big endian format without checking
232 * if there are enough bytes available in the byte reader and update the
235 * Returns: signed 24 bit integer (as gint32)
238 * gst_byte_reader_peek_int24_be_unchecked:
239 * @reader: a #GstByteReader instance
241 * Read a signed 24 bit integer in big endian format without checking
242 * if there are enough bytes available in the byte reader, but do not advance
243 * the current position.
245 * Returns: signed 24 bit integer (as gint32)
247 guint32 gst_byte_reader_get_uint24_le_unchecked (GstByteReader * reader);
248 guint32 gst_byte_reader_get_uint24_be_unchecked (GstByteReader * reader);
249 guint32 gst_byte_reader_peek_uint24_le_unchecked (GstByteReader * reader);
250 guint32 gst_byte_reader_peek_uint24_be_unchecked (GstByteReader * reader);
251 gint32 gst_byte_reader_get_int24_le_unchecked (GstByteReader * reader);
252 gint32 gst_byte_reader_get_int24_be_unchecked (GstByteReader * reader);
253 gint32 gst_byte_reader_peek_int24_le_unchecked (GstByteReader * reader);
254 gint32 gst_byte_reader_peek_int24_be_unchecked (GstByteReader * reader);
257 * gst_byte_reader_get_uint32_le_unchecked:
258 * @reader: a #GstByteReader instance
260 * Read an unsigned 32 bit integer in little endian format without checking
261 * if there are enough bytes available in the byte reader and update the
264 * Returns: unsigned 32 bit integer.
267 * gst_byte_reader_peek_uint32_le_unchecked:
268 * @reader: a #GstByteReader instance
270 * Read an unsigned 32 bit integer in little endian format without checking
271 * if there are enough bytes available in the byte reader, but do not advance
272 * the current position.
274 * Returns: unsigned 32 bit integer.
277 * gst_byte_reader_get_uint32_be_unchecked:
278 * @reader: a #GstByteReader instance
280 * Read an unsigned 32 bit integer in big endian format without checking
281 * if there are enough bytes available in the byte reader and update the
284 * Returns: unsigned 32 bit integer.
287 * gst_byte_reader_peek_uint32_be_unchecked:
288 * @reader: a #GstByteReader instance
290 * Read an unsigned 32 bit integer in big endian format without checking
291 * if there are enough bytes available in the byte reader, but do not advance
292 * the current position.
294 * Returns: unsigned 32 bit integer.
297 * gst_byte_reader_get_int32_le_unchecked:
298 * @reader: a #GstByteReader instance
300 * Read a signed 32 bit integer in little endian format without checking
301 * if there are enough bytes available in the byte reader and update the
304 * Returns: signed 32 bit integer.
307 * gst_byte_reader_peek_int32_le_unchecked:
308 * @reader: a #GstByteReader instance
310 * Read a signed 32 bit integer in little endian format without checking
311 * if there are enough bytes available in the byte reader, but do not advance
312 * the current position.
314 * Returns: signed 32 bit integer.
317 * gst_byte_reader_get_int32_be_unchecked:
318 * @reader: a #GstByteReader instance
320 * Read a signed 32 bit integer in big endian format without checking
321 * if there are enough bytes available in the byte reader and update the
324 * Returns: signed 32 bit integer.
327 * gst_byte_reader_peek_int32_be_unchecked:
328 * @reader: a #GstByteReader instance
330 * Read a signed 32 bit integer in big endian format without checking
331 * if there are enough bytes available in the byte reader, but do not advance
332 * the current position.
334 * Returns: signed 32 bit integer.
336 guint32 gst_byte_reader_get_uint32_le_unchecked (GstByteReader * reader);
337 guint32 gst_byte_reader_get_uint32_be_unchecked (GstByteReader * reader);
338 guint32 gst_byte_reader_peek_uint32_le_unchecked (GstByteReader * reader);
339 guint32 gst_byte_reader_peek_uint32_be_unchecked (GstByteReader * reader);
340 gint32 gst_byte_reader_get_int32_le_unchecked (GstByteReader * reader);
341 gint32 gst_byte_reader_get_int32_be_unchecked (GstByteReader * reader);
342 gint32 gst_byte_reader_peek_int32_le_unchecked (GstByteReader * reader);
343 gint32 gst_byte_reader_peek_int32_be_unchecked (GstByteReader * reader);
346 * gst_byte_reader_get_uint64_le_unchecked:
347 * @reader: a #GstByteReader instance
349 * Read an unsigned 64 bit integer in little endian format without checking
350 * if there are enough bytes available in the byte reader and update the
353 * Returns: unsigned 64 bit integer.
356 * gst_byte_reader_peek_uint64_le_unchecked:
357 * @reader: a #GstByteReader instance
359 * Read an unsigned 64 bit integer in little endian format without checking
360 * if there are enough bytes available in the byte reader, but do not advance
361 * the current position.
363 * Returns: unsigned 64 bit integer.
366 * gst_byte_reader_get_uint64_be_unchecked:
367 * @reader: a #GstByteReader instance
369 * Read an unsigned 64 bit integer in big endian format without checking
370 * if there are enough bytes available in the byte reader and update the
373 * Returns: unsigned 64 bit integer.
376 * gst_byte_reader_peek_uint64_be_unchecked:
377 * @reader: a #GstByteReader instance
379 * Read an unsigned 64 bit integer in big endian format without checking
380 * if there are enough bytes available in the byte reader, but do not advance
381 * the current position.
383 * Returns: unsigned 64 bit integer.
386 * gst_byte_reader_get_int64_le_unchecked:
387 * @reader: a #GstByteReader instance
389 * Read a signed 64 bit integer in little endian format without checking
390 * if there are enough bytes available in the byte reader and update the
393 * Returns: signed 64 bit integer.
396 * gst_byte_reader_peek_int64_le_unchecked:
397 * @reader: a #GstByteReader instance
399 * Read a signed 64 bit integer in little endian format without checking
400 * if there are enough bytes available in the byte reader, but do not advance
401 * the current position.
403 * Returns: signed 64 bit integer.
406 * gst_byte_reader_get_int64_be_unchecked:
407 * @reader: a #GstByteReader instance
409 * Read a signed 64 bit integer in big endian format without checking
410 * if there are enough bytes available in the byte reader and update the
413 * Returns: signed 64 bit integer.
416 * gst_byte_reader_peek_int64_be_unchecked:
417 * @reader: a #GstByteReader instance
419 * Read a signed 64 bit integer in big endian format without checking
420 * if there are enough bytes available in the byte reader, but do not advance
421 * the current position.
423 * Returns: signed 64 bit integer.
425 guint64 gst_byte_reader_get_uint64_le_unchecked (GstByteReader * reader);
426 guint64 gst_byte_reader_get_uint64_be_unchecked (GstByteReader * reader);
427 guint64 gst_byte_reader_peek_uint64_le_unchecked (GstByteReader * reader);
428 guint64 gst_byte_reader_peek_uint64_be_unchecked (GstByteReader * reader);
429 gint64 gst_byte_reader_get_int64_le_unchecked (GstByteReader * reader);
430 gint64 gst_byte_reader_get_int64_be_unchecked (GstByteReader * reader);
431 gint64 gst_byte_reader_peek_int64_le_unchecked (GstByteReader * reader);
432 gint64 gst_byte_reader_peek_int64_be_unchecked (GstByteReader * reader);
435 * gst_byte_reader_get_float32_le_unchecked:
436 * @reader: a #GstByteReader instance
438 * Read a 32 bit little endian float without checking if there is enough
439 * data available and update the current position.
441 * Returns: floating point value read
444 * gst_byte_reader_peek_float32_le_unchecked:
445 * @reader: a #GstByteReader instance
447 * Read a 32 bit little endian float without checking if there is enough
448 * data available, but keep the current position.
450 * Returns: floating point value read
453 * gst_byte_reader_get_float32_be_unchecked:
454 * @reader: a #GstByteReader instance
456 * Read a 32 bit big endian float without checking if there is enough
457 * data available and update the current position.
459 * Returns: floating point value read
462 * gst_byte_reader_peek_float32_be_unchecked:
463 * @reader: a #GstByteReader instance
465 * Read a 32 bit big endian float without checking if there is enough
466 * data available, but keep the current position.
468 * Returns: floating point value read
471 * gst_byte_reader_get_float64_le_unchecked:
472 * @reader: a #GstByteReader instance
474 * Read a 64 bit little endian float without checking if there is enough
475 * data available and update the current position.
477 * Returns: double precision floating point value read
480 * gst_byte_reader_peek_float64_le_unchecked:
481 * @reader: a #GstByteReader instance
483 * Read a 64 bit little endian float without checking if there is enough
484 * data available, but keep the current position.
486 * Returns: double precision floating point value read
489 * gst_byte_reader_get_float64_be_unchecked:
490 * @reader: a #GstByteReader instance
492 * Read a 64 bit big endian float without checking if there is enough
493 * data available and update the current position.
495 * Returns: double precision floating point value read
498 * gst_byte_reader_peek_float64_be_unchecked:
499 * @reader: a #GstByteReader instance
501 * Read a 64 bit big endian float without checking if there is enough
502 * data available, but keep the current position.
504 * Returns: double precision floating point value read
507 gfloat gst_byte_reader_get_float32_le_unchecked (GstByteReader * reader);
508 gfloat gst_byte_reader_get_float32_be_unchecked (GstByteReader * reader);
509 gdouble gst_byte_reader_get_float64_le_unchecked (GstByteReader * reader);
510 gdouble gst_byte_reader_get_float64_be_unchecked (GstByteReader * reader);
512 gfloat gst_byte_reader_peek_float32_le_unchecked (GstByteReader * reader);
513 gfloat gst_byte_reader_peek_float32_be_unchecked (GstByteReader * reader);
514 gdouble gst_byte_reader_peek_float64_le_unchecked (GstByteReader * reader);
515 gdouble gst_byte_reader_peek_float64_be_unchecked (GstByteReader * reader);
518 * gst_byte_reader_peek_data_unchecked:
519 * @reader: a #GstByteReader instance
521 * Returns: (transfer none): a constant pointer to the current data position
523 const guint8 * gst_byte_reader_peek_data_unchecked (GstByteReader * reader);
525 * gst_byte_reader_get_data_unchecked:
526 * @reader: a #GstByteReader instance
527 * @size: Size in bytes
529 * Returns a constant pointer to the current data position without checking
530 * if at least @size bytes are left. Advances the current read position by
533 * Returns: (transfer none) (array length=size): a constant pointer to the
534 * current data position.
536 const guint8 * gst_byte_reader_get_data_unchecked (GstByteReader * reader, guint size);
538 * gst_byte_reader_dup_data_unchecked:
539 * @reader: a #GstByteReader instance
540 * @size: Size in bytes
542 * Returns a newly-allocated copy of the data at the current data position
543 * without checking if at least @size bytes are left. Advances the current read
544 * position by @size bytes.
546 * Free-function: g_free
548 * Returns: (transfer full) (array length=size): a newly-allocated copy of the
549 * data @size bytes in size. Free with g_free() when no longer needed.
551 guint8 * gst_byte_reader_dup_data_unchecked (GstByteReader * reader, guint size);