MCPcopy Create free account
hub / github.com/apache/kudu / BitmapToString

Function BitmapToString

src/kudu/util/bitmap.cc:155–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155string BitmapToString(const uint8_t* bitmap, size_t num_bits) {
156 string s;
157 size_t index = 0;
158 while (index < num_bits) {
159 StringAppendF(&s, "%4zu: ", index);
160 for (int i = 0; i < 8 && index < num_bits; ++i) {
161 for (int j = 0; j < 8 && index < num_bits; ++j) {
162 StringAppendF(&s, "%d", BitmapTest(bitmap, index));
163 ++index;
164 }
165 StringAppendF(&s, " ");
166 }
167 StringAppendF(&s, "\n");
168 }
169 return s;
170}
171
172} // namespace kudu

Callers 3

ToStringMethod · 0.85
TEST_FFunction · 0.85
TESTFunction · 0.85

Calls 2

StringAppendFFunction · 0.85
BitmapTestFunction · 0.85

Tested by 2

TEST_FFunction · 0.68
TESTFunction · 0.68