Lines Matching refs:buffer

95   // Note that glibc doesn't necessarily write into the buffer.
680 // Choose a random size for our src buffer.
717 // Choose a random size for our src buffer.
800 uint8_t* buffer;
801 ASSERT_EQ(0, posix_memalign(reinterpret_cast<void**>(&buffer), 64, 64));
802 memset(buffer, 10, 64);
803 ASSERT_TRUE(NULL == memchr(buffer, 5, 0));
804 ASSERT_TRUE(NULL == memchr(buffer, 10, 0));
968 char* buffer = reinterpret_cast<char*>(malloc(MEMMOVE_DATA_SIZE));
969 ASSERT_TRUE(buffer != NULL);
980 char* src = buffer;
982 char* dst = buffer + 256 + i;
994 char* dst = buffer + 256;
995 src = buffer;
1195 // Create a small buffer for doing quick compares in each loop.
1242 // Create a small buffer for doing quick compares in each loop.
1318 // Need at least a two character buffer to do this test.
1380 // The buffer does not contain the search value.
1384 // The search value is the first element in the buffer.
1389 // The search value is the last element in the buffer.
1409 // The buffer does not contain the search value.
1415 // The search value is the first element in the buffer.
1421 // The search value is the second to last element in the buffer.
1443 // The buffer does not contain the search value.
1449 // The search value is the first element in the buffer.
1455 // The search value is the second to last element in the buffer.
1515 static void DoMemcpySameTest(uint8_t* buffer, size_t len) {
1516 memcpy(buffer, g_memcpy_same_buffer.data(), len);
1517 ASSERT_EQ(buffer, memcpy(buffer, buffer, len));
1518 ASSERT_TRUE(memcmp(buffer, g_memcpy_same_buffer.data(), len) == 0);