Lines Matching refs:readPosition
36 size_t readPosition = 0;
41 if (memcmp(&initData[readPosition], &expectedSize, sizeof(expectedSize)) != 0) {
42 HDF_LOGD("%{public}s: memcmp(&initData[readPosition], &expectedSize, sizeof(expectedSize)) != 0", __func__);
44 readPosition += sizeof(expectedSize);
48 if (memcmp(&initData[readPosition], psshIdentifier, sizeof(psshIdentifier)) != 0) {
51 readPosition += sizeof(psshIdentifier);
57 if (memcmp(&initData[readPosition], psshVersion0, sizeof(psshVersion0)) != 0) {
58 if (memcmp(&initData[readPosition], psshVersion1, sizeof(psshVersion1)) != 0) {
63 readPosition += sizeof(psshVersion1);
66 std::string uuid((reinterpret_cast<const char*>(initData.data())) + readPosition, CLEARPLAY_NAME.size());
70 readPosition += SYSTEM_ID_SIZE;
104 ret = memcpy_s(&keyIdCount, sizeof(keyIdCount), &initData[readPosition], sizeof(keyIdCount));
110 readPosition += sizeof(keyIdCount);
116 keyId.push_back(initData[readPosition + i * KEY_ID_SIZE + j]);