Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenAtomFoundation/pikiwidb
/ PutLengthPrefixedString
Function
PutLengthPrefixedString
src/pstd/src/pstd_coding.cc:85–88 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
83
}
84
85
void PutLengthPrefixedString(std::string* dst, const std::string& value) {
86
PutVarint32(dst, value.size());
87
dst->append(value.data(), value.size());
88
}
89
90
int VarintLength(uint64_t v) {
91
int len = 1;
Callers
1
TEST_F
Function · 0.50
Calls
3
PutVarint32
Function · 0.70
size
Method · 0.45
data
Method · 0.45
Tested by
1
TEST_F
Function · 0.40