Lines Matching refs:dst
12 Slice RandomString(Random* rnd, int len, std::string* dst) {
13 dst->resize(len);
15 (*dst)[i] = static_cast<char>(' ' + rnd->Uniform(95)); // ' ' .. '~'
17 return Slice(*dst);
35 size_t len, std::string* dst) {
42 dst->clear();
43 while (dst->size() < len) {
44 dst->append(raw_data);
46 dst->resize(len);
47 return Slice(*dst);