MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / Append

Method Append

Libraries/snappy/snappy.cc:1160–1169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1158 }
1159
1160 inline bool Append(const char* ip, size_t len) {
1161 char* op = op_;
1162 const size_t space_left = op_limit_ - op;
1163 if (space_left < len) {
1164 return false;
1165 }
1166 memcpy(op, ip, len);
1167 op_ = op + len;
1168 return true;
1169 }
1170
1171 inline bool TryFastAppend(const char* ip, size_t available, size_t len) {
1172 char* op = op_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected