Searched refs:end_offset (Results 1 – 7 of 7) sorted by relevance
79 off_t end_offset{0}; // non-inclusive, zero indicates unspecified. member129 request->end_offset = atoll(range.c_str() + range.find('-') + 1) + 1; in ParseRequest()134 if (request->end_offset > 0) in ParseRequest()136 (intmax_t)request->end_offset); in ParseRequest()180 ssize_t WriteHeaders(int fd, const off_t start_offset, const off_t end_offset, in WriteHeaders() argument194 const off_t content_length = end_offset - start_offset;; in WriteHeaders()198 if (start_offset || start_offset == end_offset) { in WriteHeaders()202 Itoa(start_offset == end_offset ? 0 : start_offset) + in WriteHeaders()203 "-" + Itoa(end_offset - 1) + "/" + Itoa(end_offset) + in WriteHeaders()222 size_t WritePayload(int fd, const off_t start_offset, const off_t end_offset, in WritePayload() argument[all …]
387 int end_offset = 3; variable389 if (arg[end_offset] != "-h" ||390 arg[end_offset + 1] != kHostName) {393 end_offset += 2;397 if (arg[end_offset] != "-i" ||398 arg[end_offset + 1] != kVendorClass) {401 end_offset += 2;405 if (arg[end_offset] != "-R" ||406 arg[end_offset + 1] != "-P") {409 end_offset += 2;[all …]
223 int end_offset = 4; variable227 return arg[end_offset] == device_arg;
166 int end_offset = 2; variable170 return arg[end_offset] == device_arg;
235 uint64_t end_offset; in WriteFeatureEnd() local236 if (!SeekFileEnd(&end_offset)) { in WriteFeatureEnd()241 desc.size = end_offset - start_offset; in WriteFeatureEnd()
166 size_t end_offset = 0; in ResumeTransfer() local168 end_offset = static_cast<size_t>(resume_offset_) + download_length_ - 1; in ResumeTransfer()169 CHECK_LE((size_t) resume_offset_, end_offset); in ResumeTransfer()175 if (end_offset) in ResumeTransfer()176 range_str += std::to_string(end_offset); in ResumeTransfer()
216 size_t end_offset = *src_offset + size / sizeof(*buffer.ptr); in ReadDataFromBuffer() local217 if (buffer.size < end_offset) { in ReadDataFromBuffer()223 *src_offset = end_offset; in ReadDataFromBuffer()