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

Method size

bolt/exec/SpillFile.cpp:164–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162 const auto windowBits =
163 kind == common::CompressionKind_GZIP ? MAX_WBITS + 16 : MAX_WBITS;
164 z_stream stream{};
165 BOLT_CHECK_EQ(inflateInit2(&stream, windowBits), Z_OK);
166 auto cleanup = folly::makeGuard([&]() { inflateEnd(&stream); });
167 stream.next_in = reinterpret_cast<Bytef*>(const_cast<char*>(input));
168 stream.avail_in = inputSize;
169 stream.next_out = reinterpret_cast<Bytef*>(output);
170 stream.avail_out = outputSize;
171 BOLT_CHECK_EQ(inflate(&stream, Z_FINISH), Z_STREAM_END);
172 BOLT_CHECK_EQ(stream.total_out, outputSize);

Callers 15

makeValueIdsDecodedMethod · 0.45
lookupValueIdsTypedMethod · 0.45
analyzeValueMethod · 0.45
copyStringToLocalMethod · 0.45
getFilterMethod · 0.45
cardinalityMethod · 0.45
enableValueIdsMethod · 0.45
mergeMethod · 0.45
toStringMethod · 0.45
createVectorHashersFunction · 0.45
TreeOfLosersMethod · 0.45
numStreamsMethod · 0.45

Calls

no outgoing calls

Tested by 15

executeSerialMethod · 0.36
TEST_FFunction · 0.36
DEBUG_ONLY_TEST_FFunction · 0.36
runOneMethod · 0.36
runMethod · 0.36
saveReproMethod · 0.36
makeAggregatesMethod · 0.36
setupSpillStateMethod · 0.36
spillStateTestMethod · 0.36
TEST_PFunction · 0.36
MockOperatorMethod · 0.36
runSpillOperatorsMethod · 0.36