Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chen3feng/toft
/ set
Method
set
base/string/string_piece.h:109–112 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
107
m_length = 0;
108
}
109
void set(const char* buffer, size_t len) {
110
m_ptr = buffer;
111
m_length = len;
112
}
113
void set(const char* str) {
114
m_ptr = str;
115
m_length = str ? strlen(str) : 0;
Callers
3
ReadRecord
Method · 0.80
ReadRecord
Method · 0.80
TEST
Function · 0.80
Calls
2
data
Method · 0.80
size
Method · 0.45
Tested by
1
TEST
Function · 0.64