Lines Matching defs:pos
152 size_t pos = 0;
162 if (!Utils::ReadFully(fd, buffer.data() + pos, size)) {
166 pos += size;
168 return pos;
173 size_t pos = 0;
185 if (Utils::WriteFully(fd, buffer.data() + pos, writeSize) == false) {
189 pos += writeSize;
195 return pos;
251 int32_t BlockSet::LoadSourceBuffer(const Command &cmd, size_t &pos, std::vector<uint8_t> &sourceBuffer,
254 std::string targetCmd = cmd.GetArgumentByPos(pos++);
265 std::string nextArgv = cmd.GetArgumentByPos(pos++);
274 std::string lastArg = cmd.GetArgumentByPos(pos++);
291 lastArg = cmd.GetArgumentByPos(pos++);
297 const size_t size, const std::string srcHash, size_t &pos)
304 size_t pos, std::string &srcHash)
307 auto ret = LoadSourceBuffer(cmd, pos, buffer, isOverlap, blockSize);
317 return BlockVerify(cmd, buffer, blockSize, srcHash, pos);
368 for (size_t pos = iter->first; pos < iter->second; pos++) {