MCPcopy Create free account
hub / github.com/SFML/SFML / append

Method append

src/SFML/Network/Packet.cpp:44–52  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

42{
43////////////////////////////////////////////////////////////
44void Packet::append(const void* data, std::size_t sizeInBytes)
45{
46 if (data && (sizeInBytes > 0))
47 {
48 const auto* begin = reinterpret_cast<const std::byte*>(data);
49 const auto* end = begin + sizeInBytes;
50 m_data.insert(m_data.end(), begin, end);
51 }
52}
53
54
55////////////////////////////////////////////////////////////

Callers 7

Packet.test.cppFile · 0.45
getDeviceNameFunction · 0.45
sendRequestMethod · 0.45
onProcessSamplesMethod · 0.45
StormBlinkMethod · 0.45
encode_codepointFunction · 0.45

Calls 2

insertMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected