Searched refs:kMagic (Results 1 – 6 of 6) sorted by relevance
/external/llvm/lib/Fuzzer/test/ |
D | UserSuppliedFuzzerTest.cpp | 13 static const uint64_t kMagic = 8860221463604ULL; variable 21 if (memcmp(Data, &kMagic, sizeof(kMagic))) return 0; in TargetFunction() 36 assert(MaxSize > sizeof(kMagic)); in Mutate() 37 if (Size < sizeof(kMagic)) in Mutate() 38 Size = sizeof(kMagic); in Mutate() 40 memcpy(Data, &kMagic, std::min(MaxSize, sizeof(kMagic))); in Mutate() 42 Data + sizeof(kMagic), Size - sizeof(kMagic), MaxSize - sizeof(kMagic)); in Mutate()
|
/external/skia/src/core/ |
D | SkPicture.cpp | 57 static const char kMagic[] = { 's', 'k', 'i', 'a', 'p', 'i', 'c', 't' }; variable 62 static_assert(sizeof(kMagic) == 8, ""); in createHeader() 63 static_assert(sizeof(kMagic) == sizeof(info.fMagic), ""); in createHeader() 64 memcpy(info.fMagic, kMagic, sizeof(kMagic)); in createHeader() 80 if (0 != memcmp(info.fMagic, kMagic, sizeof(kMagic))) { in IsValidPictInfo() 95 SkASSERT(sizeof(kMagic) == sizeof(info.fMagic)); in InternalOnly_StreamIsSKP() 96 if (!stream->read(&info.fMagic, sizeof(kMagic))) { in InternalOnly_StreamIsSKP() 116 SkASSERT(sizeof(kMagic) == sizeof(info.fMagic)); in InternalOnly_BufferIsSKP() 117 if (!buffer->readByteArray(&info.fMagic, sizeof(kMagic))) { in InternalOnly_BufferIsSKP()
|
/external/tlsdate/src/ |
D | test-bio.c | 24 static const unsigned int kMagic = 0x5f8d3f15; variable 38 assert (ctx->magic == kMagic); in bio_ctx() 68 ctx->magic = kMagic; in test_new()
|
/external/libgdx/gdx/jni/etc1/ |
D | etc1_utils.cpp | 612 static const char kMagic[] = { 'P', 'K', 'M', ' ', '1', '0' }; variable 634 memcpy(pHeader, kMagic, sizeof(kMagic)); in etc1_pkm_format_header() 647 if (memcmp(pHeader, kMagic, sizeof(kMagic))) { in etc1_pkm_is_valid()
|
/external/skia/third_party/etc1/ |
D | etc1.cpp | 620 static const char kMagic[] = { 'P', 'K', 'M', ' ', '1', '0' }; variable 642 memcpy(pHeader, kMagic, sizeof(kMagic)); in etc1_pkm_format_header() 655 if (memcmp(pHeader, kMagic, sizeof(kMagic))) { in etc1_pkm_is_valid()
|
/external/libchrome/base/ |
D | pickle_unittest.cc | 438 const uint32_t kMagic = 0x12345678; in TEST() local 441 pickle.WriteInt(kMagic); in TEST() 450 EXPECT_EQ(static_cast<uint32_t>(result), kMagic); in TEST()
|