Home
last modified time | relevance | path

Searched refs:BYTE_SIZE (Results 1 – 3 of 3) sorted by relevance

/base/update/updater/test/unittest/common/ring_buffer/
Dring_buffer_unittest.cpp26 constexpr uint32_t BYTE_SIZE = 255; variable
43 buf[0] = i % BYTE_SIZE; in ProducerTask()
44 buf[1] = i / BYTE_SIZE; in ProducerTask()
56 if (buf[0] != g_num % BYTE_SIZE || buf[1] != g_num / BYTE_SIZE) { in ConsumerTask()
/base/update/updater/services/package/pkg_manager/
Dpkg_utils.cpp42 constexpr uint32_t BYTE_SIZE = 8; variable
211 offset += BYTE_SIZE; in GetFileSize()
213 offset += BYTE_SIZE; in GetFileSize()
215 offset += BYTE_SIZE; in GetFileSize()
228 uint64_t value = ((static_cast<uint64_t>(high)) << (BYTE_SIZE * sizeof(uint32_t))) | low; in GetFileSize()
240 offset += BYTE_SIZE; in GetFileSize()
242 offset += BYTE_SIZE; in GetFileSize()
244 offset += BYTE_SIZE; in GetFileSize()
255 value16 += static_cast<uint16_t>(buff[1] << BYTE_SIZE); in GetFileSize()
266 buff[1] = static_cast<uint8_t>(value >> BYTE_SIZE); in GetFileSize()
/base/update/sys_installer/services/module_update/util/src/
Dmodule_utils.cpp34 constexpr uint32_t BYTE_SIZE = 8; variable
160 value16 += static_cast<uint16_t>(buff[1] << BYTE_SIZE); in ReadLE16()
172 uint32_t value = ((static_cast<uint32_t>(high)) << (BYTE_SIZE * sizeof(uint16_t))) | low; in ReadLE32()