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

Function saveType

bolt/vector/VectorSaver.cpp:592–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590} // namespace
591
592void saveType(const TypePtr& type, std::ostream& out) {
593 auto serialized = toJson(type->serialize());
594 write(serialized, out);
595}
596
597TypePtr restoreType(std::istream& in) {
598 static folly::once_flag kOnce;

Callers 2

saveVectorFunction · 0.85
testTypeRoundTripMethod · 0.85

Calls 3

toJsonFunction · 0.85
writeFunction · 0.70
serializeMethod · 0.45

Tested by 1

testTypeRoundTripMethod · 0.68