MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / BigString

Function BigString

tensorflow/core/lib/io/recordio_test.cc:33–40  ·  view source on GitHub ↗

Construct a string of the specified length made out of the supplied partial string.

Source from the content-addressed store, hash-verified

31// Construct a string of the specified length made out of the supplied
32// partial string.
33string BigString(const string& partial_string, size_t n) {
34 string result;
35 while (result.size() < n) {
36 result.append(partial_string);
37 }
38 result.resize(n);
39 return result;
40}
41
42// Construct a string from a number
43string NumberString(int n) {

Callers 3

RandomSkewedStringFunction · 0.85
TestReadErrorFunction · 0.85

Calls 3

sizeMethod · 0.45
appendMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected