Lines Matching refs:pos
152 size_t pos = 0; in ReadDataFromBlock() local
162 if (!Utils::ReadFully(fd, buffer.data() + pos, size)) { in ReadDataFromBlock()
166 pos += size; in ReadDataFromBlock()
168 return pos; in ReadDataFromBlock()
173 size_t pos = 0; in WriteDataToBlock() local
192 if (Utils::WriteFully(fd, buffer.data() + pos, writeSize) == false) { in WriteDataToBlock()
196 pos += writeSize; in WriteDataToBlock()
202 return pos; in WriteDataToBlock()
258 int32_t BlockSet::LoadSourceBuffer(const Command &cmd, size_t &pos, std::vector<uint8_t> &sourceBuf… in LoadSourceBuffer() argument
261 std::string blockLen = cmd.GetArgumentByPos(pos++); in LoadSourceBuffer()
264 std::string targetCmd = cmd.GetArgumentByPos(pos++); in LoadSourceBuffer()
275 std::string nextArgv = cmd.GetArgumentByPos(pos++); in LoadSourceBuffer()
284 std::string lastArg = cmd.GetArgumentByPos(pos++); in LoadSourceBuffer()
301 lastArg = cmd.GetArgumentByPos(pos++); in LoadSourceBuffer()
307 size_t pos, std::string &srcHash) in LoadTargetBuffer() argument
310 auto ret = LoadSourceBuffer(cmd, pos, buffer, isOverlap, blockSize); in LoadTargetBuffer()
366 for (size_t pos = iter->first; pos < iter->second; pos++) { in WriteZeroToBlock() local
384 size_t pos = H_MOVE_CMD_ARGS_START; in WriteDiffToBlock() local
385 size_t offset = Utils::String2Int<size_t>(cmd.GetArgumentByPos(pos++), Utils::N_DEC); in WriteDiffToBlock()
386 size_t length = Utils::String2Int<size_t>(cmd.GetArgumentByPos(pos++), Utils::N_DEC); in WriteDiffToBlock()
404 }, cmd.GetArgumentByPos(pos + 1)); in WriteDiffToBlock()
421 }, cmd.GetArgumentByPos(pos + 1)); in WriteDiffToBlock()