MCPcopy Create free account
hub / github.com/bytedance/bolt / encodeInPlace

Function encodeInPlace

bolt/exec/prefixsort/tests/utils/EncoderTestUtils.cpp:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43} // namespace
44
45void encodeInPlace(std::vector<int64_t>& data) {
46 for (auto i = 0; i < data.size(); i++) {
47 PrefixSortEncoder::encode(
48 data[i], (char*)data.data() + i * sizeof(int64_t));
49 }
50}
51
52void decodeInPlace(std::vector<int64_t>& data) {
53 for (auto i = 0; i < data.size(); i++) {

Callers 3

testQuickSortMethod · 0.85
TEST_FFunction · 0.85
generateTestVectorMethod · 0.85

Calls 3

encodeFunction · 0.85
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected