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

Method TryFastAppend

Libraries/snappy/snappy.cc:1171–1183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1169 }
1170
1171 inline bool TryFastAppend(const char* ip, size_t available, size_t len) {
1172 char* op = op_;
1173 const size_t space_left = op_limit_ - op;
1174 if (len <= 16 && available >= 16 + kMaximumTagLength && space_left >= 16) {
1175 // Fast path, used for the majority (about 95%) of invocations.
1176 UnalignedCopy64(ip, op);
1177 UnalignedCopy64(ip + 8, op + 8);
1178 op_ = op + len;
1179 return true;
1180 } else {
1181 return false;
1182 }
1183 }
1184
1185 inline bool AppendFromSelf(size_t offset, size_t len) {
1186 char* op = op_;

Callers

nothing calls this directly

Calls 1

UnalignedCopy64Function · 0.85

Tested by

no test coverage detected