• Home
  • Raw
  • Download

Lines Matching refs:len

49   unsigned int len;  in test_blob_empty()  local
60 len = hb_blob_get_length (blob); in test_blob_empty()
61 g_assert_cmpint (len, ==, 0); in test_blob_empty()
66 data = hb_blob_get_data (blob, &len); in test_blob_empty()
68 g_assert_cmpint (len, ==, 0); in test_blob_empty()
73 data_writable = hb_blob_get_data_writable (blob, &len); in test_blob_empty()
75 g_assert_cmpint (len, ==, 0); in test_blob_empty()
94 unsigned int len; member
144 unsigned int len; in fixture_init() local
152 len = sizeof (test_data); in fixture_init()
158 len = sizeof (test_data); in fixture_init()
165 len = sizeof (test_data); in fixture_init()
178 len = sizeof (test_data); in fixture_init()
190 fixture->len = len; in fixture_init()
191 fixture->blob = hb_blob_create (data, len, mm, fixture, free_func); in fixture_init()
207 unsigned int len; in test_blob() local
214 len = hb_blob_get_length (b); in test_blob()
215 g_assert_cmpint (len, ==, fixture->len); in test_blob()
217 data = hb_blob_get_data (b, &len); in test_blob()
218 g_assert_cmpint (len, ==, fixture->len); in test_blob()
228 data_writable = hb_blob_get_data_writable (b, &len); in test_blob()
229 g_assert_cmpint (len, ==, fixture->len); in test_blob()
231 g_assert (0 == memcmp (data_writable, fixture->data, fixture->len)); in test_blob()
239 data = hb_blob_get_data (b, &len); in test_blob()
240 g_assert_cmpint (len, ==, fixture->len); in test_blob()
243 memset (data_writable, 0, fixture->len); in test_blob()
251 data_writable = hb_blob_get_data_writable (b, &len); in test_blob()
253 g_assert_cmpint (len, ==, 0); in test_blob()
255 data = hb_blob_get_data (b, &len); in test_blob()
256 g_assert_cmpint (len, ==, fixture->len); in test_blob()
257 for (i = 0; i < len; i++) in test_blob()
266 unsigned int len; in test_blob_subblob() local
277 fixture->blob = hb_blob_create_sub_blob (b, 1, fixture->len - 2); in test_blob_subblob()
285 len = hb_blob_get_length (b); in test_blob_subblob()
286 g_assert_cmpint (len, ==, fixture->len - 2); in test_blob_subblob()
288 data = hb_blob_get_data (b, &len); in test_blob_subblob()
289 g_assert_cmpint (len, ==, fixture->len - 2); in test_blob_subblob()
292 data_writable = hb_blob_get_data_writable (b, &len); in test_blob_subblob()
293 g_assert_cmpint (len, ==, fixture->len - 2); in test_blob_subblob()
296 g_assert (0 == memcmp (data_writable, fixture->data + 1, fixture->len - 2)); in test_blob_subblob()
300 data = hb_blob_get_data (b, &len); in test_blob_subblob()
301 g_assert_cmpint (len, ==, fixture->len - 2); in test_blob_subblob()
304 memset (data_writable, 0, fixture->len - 2); in test_blob_subblob()
312 data_writable = hb_blob_get_data_writable (b, &len); in test_blob_subblob()
314 g_assert_cmpint (len, ==, 0); in test_blob_subblob()
316 data = hb_blob_get_data (b, &len); in test_blob_subblob()
317 g_assert_cmpint (len, ==, fixture->len - 2); in test_blob_subblob()
318 for (i = 0; i < len; i++) in test_blob_subblob()