Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/actor-framework/actor-framework
/ take
Function
take
libcaf_net/caf/detail/rfc6455.test.cpp:30–33 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
28
29
template <class T>
30
auto take(const T& xs, size_t num_bytes) {
31
auto n = std::min(xs.size(), num_bytes);
32
return std::vector<typename T::value_type>{xs.begin(), xs.begin() + n};
33
}
34
35
} // namespace
36
Callers
1
rfc6455.test.cpp
File · 0.70
Calls
2
size
Method · 0.45
begin
Method · 0.45
Tested by
no test coverage detected