Home | History | Annotate | Download | only in tests

Lines Matching full:data

44     int maxchars = sizeof(storage->data) / sizeof(storage->data[0]);
54 if (len + storage->count < sizeof(storage->data)) {
55 memcpy(storage->data + storage->count, s, len);
67 maxchars = sizeof(storage->data) / sizeof(storage->data[0]);
75 if (len + storage->count < sizeof(storage->data)) {
76 memcpy(storage->data + storage->count, s,
77 len * sizeof(storage->data[0]));
95 sprintf(buffer, "wrong number of data characters:"
96 " got %d, expected %d:\n%s", count, len, storage->data);
99 "wrong number of data characters: got %d, expected %d",
104 if (memcmp(expected, storage->data, len) != 0) {
105 fail("got bad data bytes");
121 sprintf(buffer, "wrong number of data characters: got %d, expected %d",
126 if (memcmp(expected, storage->data, len * sizeof(storage->data[0])) != 0) {
127 fail("got bad data bytes");