Home
last modified time | relevance | path

Searched refs:trailer (Results 1 – 2 of 2) sorted by relevance

/system/chre/platform/shared/include/chre/platform/shared/
Dmemory_debug.h81 uint8_t *trailer = static_cast<uint8_t *>(mem) + size; in debugAlloc() local
82 memcpy(trailer, &kMagicAllocated, sizeof(kMagicAllocated)); in debugAlloc()
105 uint8_t *trailer = static_cast<uint8_t *>(pointer) + preamble->allocSize; in debugFree() local
106 if (memcmp(trailer, &kMagicFreed, sizeof(kMagicFreed)) == 0) { in debugFree()
108 } else if (memcmp(trailer, &kMagicAllocated, sizeof(kMagicAllocated)) in debugFree()
113 memcpy(trailer, &kMagicFreed, sizeof(kMagicFreed)); in debugFree()
/system/core/libziparchive/
Dzip_archive_test.cc367 static const uint8_t trailer[] = {'A', 'n', 'd', 'r', 'o', 'i', 'd', 'z'}; in TEST() local
369 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, trailer, sizeof(trailer))); in TEST()