MCPcopy 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

ReadRecordMethod · 0.80
ReadRecordMethod · 0.80
TESTFunction · 0.80

Calls 2

dataMethod · 0.80
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.64