Home
last modified time | relevance | path

Searched refs:kMagic (Results 1 – 25 of 38) sorted by relevance

12

/external/icu/icu4c/source/common/
Dcapi_helper.h14 template<typename CType, typename CPPType, int32_t kMagic>
46 int32_t fMagic = kMagic;
50 template<typename CType, typename CPPType, int32_t kMagic>
52 IcuCApiHelper<CType, CPPType, kMagic>::validate(const CType* input, UErrorCode& status) { in validate()
61 if (static_cast<const IcuCApiHelper<CType, CPPType, kMagic>*>(impl)->fMagic != kMagic) { in validate()
68 template<typename CType, typename CPPType, int32_t kMagic>
70 IcuCApiHelper<CType, CPPType, kMagic>::validate(CType* input, UErrorCode& status) { in validate()
76 template<typename CType, typename CPPType, int32_t kMagic>
78 IcuCApiHelper<CType, CPPType, kMagic>::exportConstForC() const { in exportConstForC()
82 template<typename CType, typename CPPType, int32_t kMagic>
[all …]
/external/icu/libicu/cts_headers/
Dcapi_helper.h14 template<typename CType, typename CPPType, int32_t kMagic>
46 int32_t fMagic = kMagic;
50 template<typename CType, typename CPPType, int32_t kMagic>
52 IcuCApiHelper<CType, CPPType, kMagic>::validate(const CType* input, UErrorCode& status) { in validate()
61 if (static_cast<const IcuCApiHelper<CType, CPPType, kMagic>*>(impl)->fMagic != kMagic) { in validate()
68 template<typename CType, typename CPPType, int32_t kMagic>
70 IcuCApiHelper<CType, CPPType, kMagic>::validate(CType* input, UErrorCode& status) { in validate()
76 template<typename CType, typename CPPType, int32_t kMagic>
78 IcuCApiHelper<CType, CPPType, kMagic>::exportConstForC() const { in exportConstForC()
82 template<typename CType, typename CPPType, int32_t kMagic>
[all …]
/external/skia/src/core/
DSkPicture.cpp51 static const char kMagic[] = { 's', 'k', 'i', 'a', 'p', 'i', 'c', 't' }; variable
56 static_assert(sizeof(kMagic) == 8, ""); in createHeader()
57 static_assert(sizeof(kMagic) == sizeof(info.fMagic), ""); in createHeader()
58 memcpy(info.fMagic, kMagic, sizeof(kMagic)); in createHeader()
67 if (0 != memcmp(info.fMagic, kMagic, sizeof(kMagic))) { in IsValidPictInfo()
83 SkASSERT(sizeof(kMagic) == sizeof(info.fMagic)); in StreamIsSKP()
84 if (stream->read(&info.fMagic, sizeof(kMagic)) != sizeof(kMagic)) { in StreamIsSKP()
107 SkASSERT(sizeof(kMagic) == sizeof(info.fMagic)); in BufferIsSKP()
108 if (!buffer->readByteArray(&info.fMagic, sizeof(kMagic))) { in BufferIsSKP()
/external/skqp/src/core/
DSkPicture.cpp43 static const char kMagic[] = { 's', 'k', 'i', 'a', 'p', 'i', 'c', 't' }; variable
48 static_assert(sizeof(kMagic) == 8, ""); in createHeader()
49 static_assert(sizeof(kMagic) == sizeof(info.fMagic), ""); in createHeader()
50 memcpy(info.fMagic, kMagic, sizeof(kMagic)); in createHeader()
59 if (0 != memcmp(info.fMagic, kMagic, sizeof(kMagic))) { in IsValidPictInfo()
74 SkASSERT(sizeof(kMagic) == sizeof(info.fMagic)); in StreamIsSKP()
75 if (stream->read(&info.fMagic, sizeof(kMagic)) != sizeof(kMagic)) { in StreamIsSKP()
101 SkASSERT(sizeof(kMagic) == sizeof(info.fMagic)); in BufferIsSKP()
102 if (!buffer->readByteArray(&info.fMagic, sizeof(kMagic))) { in BufferIsSKP()
/external/pigweed/pw_router/size_report/
Dstatic_router_with_one_route.cc25 static constexpr uint32_t kMagic = 0x8badf00d; member
28 : magic(kMagic), address(addr), payload(data) {} in BasicPacket()
46 return packet_->magic == BasicPacket::kMagic; in Parse()
71 PW_CHECK_UINT_EQ(packet.magic, BasicPacket::kMagic, "Some CHECK logic"); in main()
Dbase.cc23 static constexpr uint32_t kMagic = 0x8badf00d; member
26 : magic(kMagic), address(addr), payload(data) {} in BasicPacket()
40 PW_CHECK_UINT_EQ(packet.magic, BasicPacket::kMagic, "Some CHECK logic"); in main()
/external/icing/icing/legacy/index/
Dicing-lite-index-header.h53 static const uint32_t kMagic = 0x6dfba6a0; member
72 return hdr_->magic == HeaderData::kMagic; in check_magic()
99 hdr_->magic = HeaderData::kMagic; in Reset()
Dicing-flash-bitmap.h128 static const uint32_t kMagic = 0x394b0698; variable
Dicing-flash-bitmap.cc85 if (accessor.header()->magic != kMagic) { in Verify()
153 accessor.header()->magic = kMagic; in Init()
/external/pigweed/pw_kvs/
Dkey_value_store_binary_format_test.cc135 constexpr uint32_t kMagic = 0x5ab2f0b5; variable
159 MakeValidEntry(kMagic, 1, "key1", bytes::String("value1"));
161 MakeValidEntry(kMagic, 3, "k2", bytes::String("value2"));
163 MakeValidEntry(kMagic, 4, "k3y", bytes::String("value3"));
165 MakeValidEntry(kMagic, 5, "4k", bytes::String("value4"));
170 EntryFormat default_format = {.magic = kMagic, .checksum = &default_checksum};
328 MakeValidEntry(kMagic, 7, "my_key", bytes::String("version 7")); in TEST_F()
330 MakeValidEntry(kMagic, 8, "my_key", bytes::String("version 8")); in TEST_F()
384 {.magic = kMagic, .checksum = &default_checksum}, in KvsErrorRecovery()
548 MakeValidEntry(kMagic, 7, "my_key", bytes::String("version 7")); in TEST_F()
[all …]
Dentry_cache_test.cc198 constexpr uint32_t kMagic = 0xa14ae726; variable
202 bytes::Concat(uint32_t(kMagic), // magic
219 bytes::Concat(uint32_t(kMagic), // magic
233 bytes::Concat(uint32_t(kMagic), // magic
245 constexpr EntryFormat kFormat{.magic = uint32_t(kMagic), .checksum = nullptr};
/external/pigweed/pw_router/
Dstatic_router_test.cc24 static constexpr uint32_t kMagic = 0x8badf00d; member
27 : magic(kMagic), address(addr), payload(data) {} in BasicPacket()
42 return packet_->magic == BasicPacket::kMagic; in Parse()
/external/skqp/src/utils/
DSkMultiPictureDocument.cpp36 static constexpr char kMagic[] = "Skia Multi-Picture Doc\n\n"; variable
73 wStream->writeText(kMagic); in onClose()
109 const size_t size = sizeof(kMagic) - 1; in SkMultiPictureDocumentReadPageCount()
111 if (size != stream->read(buffer, size) || 0 != memcmp(kMagic, buffer, size)) { in SkMultiPictureDocumentReadPageCount()
/external/skia/src/utils/
DSkMultiPictureDocument.cpp37 static constexpr char kMagic[] = "Skia Multi-Picture Doc\n\n"; variable
81 wStream->writeText(kMagic); in onClose()
119 const size_t size = sizeof(kMagic) - 1; in SkMultiPictureDocumentReadPageCount()
121 if (size != stream->read(buffer, size) || 0 != memcmp(kMagic, buffer, size)) { in SkMultiPictureDocumentReadPageCount()
/external/icing/icing/file/
Dfile-backed-proto.h50 static constexpr int32_t kMagic = 0x726f746f; member
155 if (header.magic != Header::kMagic) { in Read()
221 header.magic = Header::kMagic; in Write()
Dfile-backed-vector.h94 static constexpr int32_t kMagic = 0x8bbbe237; member
377 header->magic = FileBackedVector<T>::Header::kMagic; in InitializeNewFile()
422 if (header->kMagic != FileBackedVector<T>::Header::kMagic) { in InitializeExistingFile()
/external/puffin/src/include/puffin/
Dpuffpatch.h13 extern const char kMagic[];
/external/vulkan-validation-layers/layers/
Dhash_util.h67 static const uint64_t kMagic = sizeof(Key) > 4 ? Key(0x9e3779b97f4a7c16UL) : Key(0x9e3779b9U); variable
72 combined_ ^= Hasher()(value) + kMagic + (combined_ << 6) + (combined_ >> 2); in Combine()
/external/puffin/src/
Dpuffpatch.cc32 const char kMagic[] = "PUF1"; variable
112 if (patch_magic != kMagic) { in DecodePatch()
/external/skia/third_party/etc1/
Detc1.cpp617 static const char kMagic[] = { 'P', 'K', 'M', ' ', '1', '0' }; variable
639 memcpy(pHeader, kMagic, sizeof(kMagic)); in etc1_pkm_format_header()
652 if (memcmp(pHeader, kMagic, sizeof(kMagic))) { in etc1_pkm_is_valid()
/external/skqp/third_party/etc1/
Detc1.cpp622 static const char kMagic[] = { 'P', 'K', 'M', ' ', '1', '0' }; variable
644 memcpy(pHeader, kMagic, sizeof(kMagic)); in etc1_pkm_format_header()
657 if (memcmp(pHeader, kMagic, sizeof(kMagic))) { in etc1_pkm_is_valid()
/external/pdfium/fxjs/
Dcfx_globaldata.cpp19 constexpr uint16_t kMagic = ('X' << 8) | 'F'; variable
281 if (wType != kMagic) in LoadGlobalPersistentVariablesFromBuffer()
382 uint16_t wType = kMagic; in SaveGlobalPersisitentVariables()
/external/icing/icing/index/main/
Dflash-index-storage-header.h36 static constexpr int kMagic = 0x6dfba6ae; member
/external/libchrome/base/
Dpickle_unittest.cc433 const uint32_t kMagic = 0x12345678; in TEST() local
436 pickle.WriteInt(kMagic); in TEST()
445 EXPECT_EQ(static_cast<uint32_t>(result), kMagic); in TEST()
/external/icing/icing/schema/
Dschema-store.h52 static constexpr int32_t kMagic = 0x72650d0a; member

12