MCPcopy Create free account
hub / github.com/actor-framework/actor-framework / bytes

Function bytes

libcaf_net/caf/detail/rfc6455.test.cpp:22–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace {
21
22auto bytes(std::initializer_list<uint8_t> xs) {
23 byte_buffer result;
24 for (auto x : xs)
25 result.emplace_back(static_cast<std::byte>(x));
26 return result;
27}
28
29template <class T>
30auto take(const T& xs, size_t num_bytes) {

Callers 1

rfc6455.test.cppFile · 0.70

Calls 1

emplace_backMethod · 0.45

Tested by

no test coverage detected