Home
last modified time | relevance | path

Searched refs:VERSION_SIZE (Results 1 – 10 of 10) sorted by relevance

/arkcompiler/runtime_core/libpandafile/tests/
Dfile_format_version_test.cpp24 for (size_t i = 0; i < File::VERSION_SIZE; i++) {
26 if (i == (File::VERSION_SIZE - 1)) {
37 for (size_t i = 0; i < File::VERSION_SIZE; i++) {
39 if (i == (File::VERSION_SIZE - 1)) {
Dfile_item_container_test.cpp110 auto old = std::array<uint8_t, File::VERSION_SIZE>(minVersion);
135 header.version = std::array<uint8_t, File::VERSION_SIZE>(minVersion);
/arkcompiler/runtime_core/libpandafile/
Dfile_format_version.cpp23 std::string GetVersion(const std::array<uint8_t, File::VERSION_SIZE> &v) in GetVersion()
26 for (size_t i = 0; i < File::VERSION_SIZE; i++) { in GetVersion()
28 if (i == (File::VERSION_SIZE - 1)) { in GetVersion()
Dfile.cpp428 inline std::string VersionToString(const std::array<uint8_t, File::VERSION_SIZE> &array) in VersionToString()
432 for (size_t i = 0; i < File::VERSION_SIZE - 1; ++i) { in VersionToString()
436 ss << static_cast<int>(array[File::VERSION_SIZE - 1]); in VersionToString()
443 inline int CompareVersions(const std::array<uint8_t, File::VERSION_SIZE> &lhs, in CompareVersions()
444 const std::array<uint8_t, File::VERSION_SIZE> &rhs) in CompareVersions()
446 for (size_t i = 0; i < File::VERSION_SIZE; i++) { in CompareVersions()
455 inline bool operator<(const std::array<uint8_t, File::VERSION_SIZE> &lhs, in operator <()
456 const std::array<uint8_t, File::VERSION_SIZE> &rhs) in operator <()
461 inline bool operator>(const std::array<uint8_t, File::VERSION_SIZE> &lhs, in operator >()
462 const std::array<uint8_t, File::VERSION_SIZE> &rhs) in operator >()
[all …]
Dfile.h57 static constexpr size_t VERSION_SIZE = 4; variable
63 std::array<uint8_t, VERSION_SIZE> version;
/arkcompiler/ets_runtime/ecmascript/base/
Dfile_header.h30 static constexpr size_t VERSION_SIZE = 4; variable
31 static constexpr uint32_t CHECKSUM_END_OFFSET = MAGIC_SIZE + VERSION_SIZE + sizeof(uint32_t);
33 using VersionType = std::array<uint8_t, VERSION_SIZE>;
113 if (versionNumber.size() != VERSION_SIZE) { in InternalSetVersion()
117 for (uint32_t i = 0; i < VERSION_SIZE; i++) { in InternalSetVersion()
/arkcompiler/runtime_core/libpandafile/templates/
Dfile_format_version.h.erb26 constexpr std::array<uint8_t, File::VERSION_SIZE> version {<%= Panda::version.split('.').join(', ')…
27 constexpr std::array<uint8_t, File::VERSION_SIZE> minVersion {<%= Panda::min_version.split('.').joi…
29 std::string GetVersion(const std::array<uint8_t, File::VERSION_SIZE> &version);
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
Dpgo_profiler_encoder.cpp178 .read(reinterpret_cast<char *>(buffer->data()), PGOProfilerHeader::VERSION_SIZE); in AddChecksum()
179 …sum = adler32(0, reinterpret_cast<const Bytef *>(buffer->data()), PGOProfilerHeader::VERSION_SIZE); in AddChecksum()
190 …fileStream.seekp(PGOProfilerHeader::MAGIC_SIZE + PGOProfilerHeader::VERSION_SIZE, std::fstream::be… in AddChecksum()
Dpgo_profiler_info.cpp115 …uint32_t checksum = adler32(0, reinterpret_cast<const Bytef *>(buffer) + MAGIC_SIZE, VERSION_SIZE); in VerifyConsistency()
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Djs_pandafile.h386 static constexpr size_t VERSION_SIZE = 4; variable
387 static constexpr std::array<uint8_t, VERSION_SIZE> OLD_VERSION {0, 0, 0, 2};