Lines Matching refs:size_t

75 static constexpr size_t BLOCKSIZE = 4096;
93 static bool ParseLastCommandFile(size_t* last_command_index) { in ParseLastCommandFile()
143 static bool UpdateLastCommandIndex(size_t command_index, const std::string& command_string) { in UpdateLastCommandIndex()
223 static void allocate(size_t size, std::vector<uint8_t>* buffer) { in allocate()
241 CHECK_NE(tgt.size(), static_cast<size_t>(0)); in RangeSinkWriter()
248 size_t AvailableSpace() const { in AvailableSpace()
253 size_t Write(const uint8_t* data, size_t size) { in Write()
259 size_t written = 0; in Write()
266 size_t write_now = size; in Write()
288 size_t BytesWritten() const { in BytesWritten()
324 size_t next_range_;
326 size_t current_range_left_;
328 size_t bytes_written_;
362 static bool receive_new_data(const uint8_t* data, size_t size, void* cookie) { in receive_new_data()
380 size_t write_now = std::min(size, nti->writer->AvailableSpace()); in receive_new_data()
402 static bool receive_brotli_new_data(const uint8_t* data, size_t size, void* cookie) { in receive_brotli_new_data()
421 size_t buffer_size = std::min<size_t>(32768, nti->writer->AvailableSpace()); in receive_brotli_new_data()
427 size_t available_in = size; in receive_brotli_new_data()
428 size_t available_out = buffer_size; in receive_brotli_new_data()
444 size_t write_now = buffer_size - available_out; in receive_brotli_new_data()
483 size_t p = 0; in ReadBlocks()
489 size_t size = (end - begin) * BLOCKSIZE; in ReadBlocks()
503 size_t written = 0; in WriteBlocks()
506 size_t size = (end - begin) * BLOCKSIZE; in WriteBlocks()
530 size_t cpos;
541 size_t written;
542 size_t stashed;
558 size_t pos = 0; in PrintHashForCorruptedSourceBlocks()
605 for (size_t i = 0; i < src.blocks(); i++) { in PrintHashForCorruptedSourceBlocks()
606 size_t block_num = src.GetBlockNumber(i); in PrintHashForCorruptedSourceBlocks()
607 size_t buffer_index = locs.GetBlockNumber(i); in PrintHashForCorruptedSourceBlocks()
625 for (size_t i = 0; i < src.blocks(); i++) { in PrintHashForCorruptedStashedBlocks()
626 size_t block_num = src.GetBlockNumber(i); in PrintHashForCorruptedStashedBlocks()
654 const size_t blocks, bool printerror) { in VerifyBlocks()
792 size_t blocks = sb.st_size / BLOCKSIZE; in LoadStash()
882 static int CreateStash(State* state, size_t maxblocks, const std::string& base) { in CreateStash()
892 size_t max_stash_size = maxblocks * BLOCKSIZE; in CreateStash()
928 size_t existing = 0; in CreateStash()
936 existing += static_cast<size_t>(sb.st_size); in CreateStash()
940 size_t needed = max_stash_size - existing; in CreateStash()
967 size_t start = locs.blocks(); in MoveRange()
970 size_t blocks = it->second - it->first; in MoveRange()
993 static int LoadSourceBlocks(CommandParameters& params, const RangeSet& tgt, size_t* src_blocks, in LoadSourceBlocks()
1082 static int LoadSrcTgtVersion3(CommandParameters& params, RangeSet* tgt, size_t* src_blocks, in LoadSrcTgtVersion3()
1173 size_t blocks = 0; in PerformCommandMove()
1230 size_t blocks = src.blocks(); in PerformCommandStash()
1292 size_t size = (end - begin) * BLOCKSIZE; in PerformCommandZero()
1301 for (size_t j = begin; j < end; ++j) { in PerformCommandZero()
1361 size_t offset; in PerformCommandDiff()
1367 size_t len; in PerformCommandDiff()
1374 size_t blocks = 0; in PerformCommandDiff()
1470 size_t size = (end - begin) * BLOCKSIZE; in PerformCommandErase()
1548 for (size_t i = begin; i < end; i++) { in PerformCommandComputeHashTree()
1737 static constexpr size_t kTransferListHeaderLines = 4; in PerformBlockImageUpdate()
1754 size_t total_blocks; in PerformBlockImageUpdate()
1768 size_t stash_max_blocks; in PerformBlockImageUpdate()
1816 size_t saved_last_command_index; in PerformBlockImageUpdate()
1826 for (size_t i = kTransferListHeaderLines; i < lines.size(); i++) { in PerformBlockImageUpdate()
1830 size_t cmdindex = i - kTransferListHeaderLines; in PerformBlockImageUpdate()
2041 CHECK_EQ(static_cast<size_t>(Command::Type::LAST), command_map.size()); in BlockImageVerifyFn()
2063 CHECK_EQ(static_cast<size_t>(Command::Type::LAST), command_map.size()); in BlockImageUpdateFn()
2120 for (size_t j = begin; j < end; ++j) { in RangeSha1Fn()
2269 for (size_t j = begin; j < end; ++j) { in BlockImageRecoverFn()