• Home
  • Raw
  • Download

Lines Matching refs:len

49   unsigned int len;  in test_blob_empty()  local
63 len = hb_blob_get_length (blob); in test_blob_empty()
64 g_assert_cmpint (len, ==, 0); in test_blob_empty()
69 data = hb_blob_get_data (blob, &len); in test_blob_empty()
71 g_assert_cmpint (len, ==, 0); in test_blob_empty()
76 data_writable = hb_blob_get_data_writable (blob, &len); in test_blob_empty()
78 g_assert_cmpint (len, ==, 0); in test_blob_empty()
97 unsigned int len; member
147 unsigned int len; in fixture_init() local
155 len = sizeof (test_data); in fixture_init()
161 len = sizeof (test_data); in fixture_init()
168 len = sizeof (test_data); in fixture_init()
181 len = sizeof (test_data); in fixture_init()
193 fixture->len = len; in fixture_init()
194 fixture->blob = hb_blob_create (data, len, mm, fixture, free_func); in fixture_init()
210 unsigned int len; in test_blob() local
217 len = hb_blob_get_length (b); in test_blob()
218 g_assert_cmpint (len, ==, fixture->len); in test_blob()
220 data = hb_blob_get_data (b, &len); in test_blob()
221 g_assert_cmpint (len, ==, fixture->len); in test_blob()
231 data_writable = hb_blob_get_data_writable (b, &len); in test_blob()
232 g_assert_cmpint (len, ==, fixture->len); in test_blob()
234 g_assert (0 == memcmp (data_writable, fixture->data, fixture->len)); in test_blob()
242 data = hb_blob_get_data (b, &len); in test_blob()
243 g_assert_cmpint (len, ==, fixture->len); in test_blob()
246 memset (data_writable, 0, fixture->len); in test_blob()
254 data_writable = hb_blob_get_data_writable (b, &len); in test_blob()
256 g_assert_cmpint (len, ==, 0); in test_blob()
258 data = hb_blob_get_data (b, &len); in test_blob()
259 g_assert_cmpint (len, ==, fixture->len); in test_blob()
260 for (i = 0; i < len; i++) in test_blob()
269 unsigned int len; in test_blob_subblob() local
280 fixture->blob = hb_blob_create_sub_blob (b, 1, fixture->len - 2); in test_blob_subblob()
288 len = hb_blob_get_length (b); in test_blob_subblob()
289 g_assert_cmpint (len, ==, fixture->len - 2); in test_blob_subblob()
291 data = hb_blob_get_data (b, &len); in test_blob_subblob()
292 g_assert_cmpint (len, ==, fixture->len - 2); in test_blob_subblob()
295 data_writable = hb_blob_get_data_writable (b, &len); in test_blob_subblob()
296 g_assert_cmpint (len, ==, fixture->len - 2); in test_blob_subblob()
299 g_assert (0 == memcmp (data_writable, fixture->data + 1, fixture->len - 2)); in test_blob_subblob()
303 data = hb_blob_get_data (b, &len); in test_blob_subblob()
304 g_assert_cmpint (len, ==, fixture->len - 2); in test_blob_subblob()
307 memset (data_writable, 0, fixture->len - 2); in test_blob_subblob()
315 data_writable = hb_blob_get_data_writable (b, &len); in test_blob_subblob()
317 g_assert_cmpint (len, ==, 0); in test_blob_subblob()
319 data = hb_blob_get_data (b, &len); in test_blob_subblob()
320 g_assert_cmpint (len, ==, fixture->len - 2); in test_blob_subblob()
321 for (i = 0; i < len; i++) in test_blob_subblob()