Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BTCGPU/BTCGPU
/ PutLengthPrefixedSlice
Function
PutLengthPrefixedSlice
src/leveldb/util/coding.cc:98–101 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
96
}
97
98
void PutLengthPrefixedSlice(std::string* dst, const Slice& value) {
99
PutVarint32(dst, value.size());
100
dst->append(value.data(), value.size());
101
}
102
103
int VarintLength(uint64_t v) {
104
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