MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / getLengthOfSerializedString

Function getLengthOfSerializedString

src/IO/PackedFilesWriter.cpp:73–76  ·  view source on GitHub ↗

Returns the size of string written by @writeStringBinary call.

Source from the content-addressed store, hash-verified

71
72/// Returns the size of string written by @writeStringBinary call.
73static UInt64 getLengthOfSerializedString(const String & str)
74{
75 return getLengthOfVarUInt(str.size()) + str.size();
76}
77
78void PackedFilesWriter::applyMetadataChanges(PackedFilesIO::Index & index)
79{

Callers 1

finalizeMethod · 0.85

Calls 2

getLengthOfVarUIntFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected