Lines Matching refs:string
36 TargetInfo(std::string hash, RangeSet ranges) in TargetInfo()
39 const std::string& hash() const { in hash()
59 std::string hash_;
71 StashInfo(std::string id, RangeSet ranges) : id_(std::move(id)), ranges_(std::move(ranges)) {} in StashInfo()
77 const std::string& id() const { in id()
93 std::string id_;
106 SourceInfo(std::string hash, RangeSet ranges, RangeSet location, std::vector<StashInfo> stashes) in SourceInfo()
125 const std::function<int(const std::string&, std::vector<uint8_t>*)>& stash_reader) const;
134 const std::string& hash() const { in hash()
151 std::string hash_;
194 HashTreeInfo(RangeSet hash_tree_ranges, RangeSet source_ranges, std::string hash_algorithm, in HashTreeInfo()
195 std::string salt_hex, std::string root_hash) in HashTreeInfo()
209 const std::string& hash_algorithm() const { in hash_algorithm()
212 const std::string& salt_hex() const { in salt_hex()
215 const std::string& root_hash() const { in root_hash()
228 std::string hash_algorithm_;
229 std::string salt_hex_;
230 std::string root_hash_;
305 Command(Type type, size_t index, std::string cmdline, PatchInfo patch, TargetInfo target, in Command()
315 Command(Type type, size_t index, std::string cmdline, HashTreeInfo hash_tree_info);
320 static Command Parse(const std::string& line, size_t index, std::string* err);
323 static Type ParseType(const std::string& type_str);
333 const std::string& cmdline() const { in cmdline()
379 static bool ParseTargetInfoAndSourceInfo(const std::vector<std::string>& tokens,
380 const std::string& tgt_hash, TargetInfo* target,
381 const std::string& src_hash, SourceInfo* source,
382 std::string* err);
392 std::string cmdline_;
437 static TransferList Parse(const std::string& transfer_list_str, std::string* err);