Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/elements
/ PutLengthPrefixedSlice
Function
PutLengthPrefixedSlice
src/leveldb/util/coding.cc:72–75 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
70
}
71
72
void PutLengthPrefixedSlice(std::string* dst, const Slice& value) {
73
PutVarint32(dst, value.size());
74
dst->append(value.data(), value.size());
75
}
76
77
int VarintLength(uint64_t v) {
78
int len = 1;
Callers
4
TEST
Function · 0.85
Put
Method · 0.85
Delete
Method · 0.85
EncodeTo
Method · 0.85
Calls
3
PutVarint32
Function · 0.85
size
Method · 0.45
data
Method · 0.45
Tested by
1
TEST
Function · 0.68