Lines Matching refs:stream_data
143 guchar *stream_data; in test_data_array() local
152 stream_data = g_malloc0 (len); in test_data_array()
153 base_stream = g_memory_output_stream_new (stream_data, len, NULL, NULL); in test_data_array()
225 g_assert_cmpint (buffer[pos], ==, stream_data[pos]); in test_data_array()
229 …assert_cmpint (GUINT16_SWAP_LE_BE (((guint16 *) buffer)[pos]), ==, ((guint16 *) stream_data)[pos]); in test_data_array()
231 g_assert_cmpint (((guint16 *) buffer)[pos], ==, ((guint16 *) stream_data)[pos]); in test_data_array()
235 …cmpint ((gint16) GUINT16_SWAP_LE_BE (((gint16 *) buffer)[pos]), ==, ((gint16 *) stream_data)[pos]); in test_data_array()
237 g_assert_cmpint (((gint16 *) buffer)[pos], ==, ((gint16 *) stream_data)[pos]); in test_data_array()
241 …assert_cmpint (GUINT32_SWAP_LE_BE (((guint32 *) buffer)[pos]), ==, ((guint32 *) stream_data)[pos]); in test_data_array()
243 g_assert_cmpint (((guint32 *) buffer)[pos], ==, ((guint32 *) stream_data)[pos]); in test_data_array()
247 …cmpint ((gint32) GUINT32_SWAP_LE_BE (((gint32 *) buffer)[pos]), ==, ((gint32 *) stream_data)[pos]); in test_data_array()
249 g_assert_cmpint (((gint32 *) buffer)[pos], ==, ((gint32 *) stream_data)[pos]); in test_data_array()
253 …assert_cmpint (GUINT64_SWAP_LE_BE (((guint64 *) buffer)[pos]), ==, ((guint64 *) stream_data)[pos]); in test_data_array()
255 g_assert_cmpint (((guint64 *) buffer)[pos], ==, ((guint64 *) stream_data)[pos]); in test_data_array()
259 …cmpint ((gint64) GUINT64_SWAP_LE_BE (((gint64 *) buffer)[pos]), ==, ((gint64 *) stream_data)[pos]); in test_data_array()
261 g_assert_cmpint (((gint64 *) buffer)[pos], ==, ((gint64 *) stream_data)[pos]); in test_data_array()
271 g_free (stream_data); in test_data_array()
310 guchar *stream_data; in test_seek() local
317 stream_data = g_malloc0 (len); in test_seek()
318 base_stream = G_MEMORY_OUTPUT_STREAM (g_memory_output_stream_new (stream_data, len, NULL, NULL)); in test_seek()
332 g_assert_cmpint (stream_data[0], ==, 0x01); in test_seek()
333 g_assert_cmpint (stream_data[1], ==, 0x23); in test_seek()
334 g_assert_cmpint (stream_data[2], ==, 0x45); in test_seek()
335 g_assert_cmpint (stream_data[3], ==, 0x67); in test_seek()
348 g_assert_cmpint (stream_data[0], ==, 0x01); in test_seek()
349 g_assert_cmpint (stream_data[1], ==, 0x23); in test_seek()
350 g_assert_cmpint (stream_data[2], ==, 0x45); in test_seek()
351 g_assert_cmpint (stream_data[3], ==, 0x67); in test_seek()
352 g_assert_cmpint (stream_data[4], ==, 0x00); in test_seek()
353 g_assert_cmpint (stream_data[5], ==, 0x00); in test_seek()
354 g_assert_cmpint (stream_data[6], ==, 0x89); in test_seek()
355 g_assert_cmpint (stream_data[7], ==, 0xAB); in test_seek()
368 g_assert_cmpint (stream_data[0], ==, 0x01); in test_seek()
369 g_assert_cmpint (stream_data[1], ==, 0x23); in test_seek()
370 g_assert_cmpint (stream_data[2], ==, 0x45); in test_seek()
371 g_assert_cmpint (stream_data[3], ==, 0x67); in test_seek()
372 g_assert_cmpint (stream_data[4], ==, 0x00); in test_seek()
373 g_assert_cmpint (stream_data[5], ==, 0xCD); in test_seek()
374 g_assert_cmpint (stream_data[6], ==, 0xEF); in test_seek()
375 g_assert_cmpint (stream_data[7], ==, 0xAB); in test_seek()
388 g_assert_cmpint (stream_data[0], ==, 0x01); in test_seek()
389 g_assert_cmpint (stream_data[1], ==, 0x23); in test_seek()
390 g_assert_cmpint (stream_data[2], ==, 0x45); in test_seek()
391 g_assert_cmpint (stream_data[3], ==, 0x67); in test_seek()
392 g_assert_cmpint (stream_data[4], ==, 0xFE); in test_seek()
393 g_assert_cmpint (stream_data[5], ==, 0xDC); in test_seek()
394 g_assert_cmpint (stream_data[6], ==, 0xEF); in test_seek()
395 g_assert_cmpint (stream_data[7], ==, 0xAB); in test_seek()
408 g_assert_cmpint (stream_data[0], ==, 0x01); in test_seek()
409 g_assert_cmpint (stream_data[1], ==, 0x23); in test_seek()
410 g_assert_cmpint (stream_data[2], ==, 0x45); in test_seek()
411 g_assert_cmpint (stream_data[3], ==, 0x67); in test_seek()
412 g_assert_cmpint (stream_data[4], ==, 0xBA); in test_seek()
413 g_assert_cmpint (stream_data[5], ==, 0x87); in test_seek()
414 g_assert_cmpint (stream_data[6], ==, 0xEF); in test_seek()
415 g_assert_cmpint (stream_data[7], ==, 0xAB); in test_seek()
419 g_free (stream_data); in test_seek()
429 guchar *stream_data; in test_truncate() local
436 stream_data = g_malloc0 (len); in test_truncate()
437 …base_stream = G_MEMORY_OUTPUT_STREAM (g_memory_output_stream_new (stream_data, len, g_realloc, g_f… in test_truncate()
455 stream_data = g_memory_output_stream_get_data (base_stream); in test_truncate()
456 g_assert_cmpint (stream_data[0], ==, 0x01); in test_truncate()
457 g_assert_cmpint (stream_data[1], ==, 0x23); in test_truncate()
458 g_assert_cmpint (stream_data[2], ==, 0x45); in test_truncate()
459 g_assert_cmpint (stream_data[3], ==, 0x67); in test_truncate()
467 stream_data = g_memory_output_stream_get_data (base_stream); in test_truncate()
468 g_assert_cmpint (stream_data[0], ==, 0x01); in test_truncate()
469 g_assert_cmpint (stream_data[1], ==, 0x23); in test_truncate()
470 g_assert_cmpint (stream_data[2], ==, 0x45); in test_truncate()
471 g_assert_cmpint (stream_data[3], ==, 0x67); in test_truncate()
479 stream_data = g_memory_output_stream_get_data (base_stream); in test_truncate()
480 g_assert_cmpint (stream_data[0], ==, 0x01); in test_truncate()
481 g_assert_cmpint (stream_data[1], ==, 0x23); in test_truncate()
482 g_assert_cmpint (stream_data[2], ==, 0x45); in test_truncate()
483 g_assert_cmpint (stream_data[3], ==, 0x67); in test_truncate()
491 stream_data = g_memory_output_stream_get_data (base_stream); in test_truncate()
492 g_assert_cmpint (stream_data[0], ==, 0x01); in test_truncate()
493 g_assert_cmpint (stream_data[1], ==, 0x23); in test_truncate()