Home
last modified time | relevance | path

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

/ohos5.0/base/update/sys_installer_lite/frameworks/test/unittest/common/src/
H A Dota_test.cpp33 static char g_readBuf[READ_BUF_LEN]; variable
193 (void)memset_s(g_readBuf, READ_BUF_LEN, 0, READ_BUF_LEN); in HotaWriteTest()
194 if (memcpy_s(g_readBuf, READ_BUF_LEN, otaPkg + offset, tmpLen) != EOK) { in HotaWriteTest()
199 if (HotaWrite(reinterpret_cast<unsigned char *>(g_readBuf), offset, tmpLen) != 0) { in HotaWriteTest()
247 (void)memset_s(g_readBuf, READ_BUF_LEN, 0, READ_BUF_LEN); in HotaReadTest()
248 if (HotaRead(offset, READ_BUF_LEN, reinterpret_cast<unsigned char *>(g_readBuf)) != 0) { in HotaReadTest()
253 if (memcmp(g_readBuf, otaPkg + offset, tmpLen) != 0) { in HotaReadTest()
/ohos5.0/docs/zh-cn/device-dev/subsystems/
H A Dsubsys-ota-guide.md371 (void)memset_s(g_readBuf, READ_BUF_LEN, 0, READ_BUF_LEN);
372 if (read(fd, g_readBuf, tmpLen) < 0) {
378 if (HotaWrite((unsigned char *)g_readBuf, offset, tmpLen) != 0) {
448 (void)memset_s(g_readBuf, READ_BUF_LEN, 0, READ_BUF_LEN);
449 if (read(fd, g_readBuf, tmpLen) < 0) {
455 if (HotaWrite((unsigned char *)g_readBuf, offset, tmpLen) != 0) {
469 (void)memset_s(g_readBuf, READ_BUF_LEN, 0, READ_BUF_LEN);
470 if (HotaRead(offset, READ_BUF_LEN, (unsigned char *)g_readBuf) != 0) {
/ohos5.0/docs/en/device-dev/subsystems/
H A Dsubsys-ota-guide.md371 (void)memset_s(g_readBuf, READ_BUF_LEN, 0, READ_BUF_LEN);
372 if (read(fd, g_readBuf, tmpLen) < 0) {
378 if (HotaWrite((unsigned char *)g_readBuf, offset, tmpLen) != 0) {
448 (void)memset_s(g_readBuf, READ_BUF_LEN, 0, READ_BUF_LEN);
449 if (read(fd, g_readBuf, tmpLen) < 0) {
455 if (HotaWrite((unsigned char *)g_readBuf, offset, tmpLen) != 0) {
469 (void)memset_s(g_readBuf, READ_BUF_LEN, 0, READ_BUF_LEN);
470 if (HotaRead(offset, READ_BUF_LEN, (unsigned char *)g_readBuf) != 0) {