Lines Matching refs:currentIndex
68 block->currentIndex = 0;
79 if ((block->blockSize - block->currentIndex) >= realLen) {
107 APPSPAWN_CHECK(block->blockSize > block->currentIndex,
109 uint32_t reminderLen = block->blockSize - block->currentIndex;
112 int ret = memcpy_s(block->buffer + block->currentIndex, reminderLen, data, dataLen);
115 *((char *)block->buffer + block->currentIndex + dataLen) = '\0';
117 block->currentIndex += realDataLen;
128 uint32_t reminderBufferLen = block->blockSize - block->currentIndex;
133 int ret = memcpy_s(block->buffer + block->currentIndex, reminderBufferLen, data + currLen, reminderDataLen);
135 block->currentIndex += realLen;
139 int ret = memcpy_s(block->buffer + block->currentIndex, reminderBufferLen, data + currLen, realCopy);
141 block->currentIndex += realCopy;
238 APPSPAWN_CHECK((block->blockSize - block->currentIndex) > flagsLen,
241 AppSpawnTlv *tlv = (AppSpawnTlv *)(block->buffer + block->currentIndex);
244 *msgFlags = (AppSpawnMsgFlags *)(block->buffer + block->currentIndex + sizeof(AppSpawnTlv));
246 block->currentIndex += flagsLen;
258 reqNode->msg = (AppSpawnMsg *)(block->buffer + block->currentIndex);
266 block->currentIndex = sizeof(AppSpawnMsg);
274 APPSPAWN_LOGV("CreateBaseMsg msgLen: %{public}u %{public}u", reqNode->msg->msgLen, block->currentIndex);