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