MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / skip_bytes

Method skip_bytes

ecosystem/oss.cpp:1066–1074  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1064 }
1065
1066 bool skip_bytes(size_t n) {
1067 std::vector<uint8_t> dummy(std::min(n, size_t(128 * 1024)));
1068 while (n > 0) {
1069 size_t chunk = std::min(n, dummy.size());
1070 if (!read_exact(dummy.data(), chunk)) return false;
1071 n -= chunk;
1072 }
1073 return true;
1074 }
1075
1076 Response* response_ = nullptr;
1077 friend struct Frame;

Callers

nothing calls this directly

Calls 3

minFunction · 0.85
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected