Lines Matching defs:bytes
80 * Putting more bytes in than fit for the size of the length prefix
91 /* Adding 3 bytes should succeed */
101 /* Adding 2 bytes should succeed */
148 /* You can't put in more bytes than max size */
306 unsigned char *bytes;
309 || !TEST_true(WPACKET_allocate_bytes(&pkt, 2, &bytes)))
311 bytes[0] = 0xfe;
312 bytes[1] = 0xff;
320 || !TEST_true(WPACKET_sub_allocate_bytes_u8(&pkt, 2, &bytes)))
322 bytes[0] = 0xfe;
323 bytes[1] = 0xff;
336 const unsigned char bytes[] = { 0xfe, 0xff };
339 || !TEST_true(WPACKET_memcpy(&pkt, bytes, sizeof(bytes)))
347 || !TEST_true(WPACKET_sub_memcpy_u8(&pkt, bytes, sizeof(bytes)))
375 /* this sub-packet is empty, and should render zero bytes */
393 * Test with a sub-packet that has 2 length bytes. We do 2 passes - first