MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ReadBytes

Method ReadBytes

Source/Engine/Networking/NetworkStream.cpp:229–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229void NetworkStream::ReadBytes(void* data, uint32 bytes)
230{
231 if (bytes > 0)
232 {
233 ASSERT(data && GetLength() - GetPosition() >= bytes);
234 Platform::MemoryCopy(data, _position, bytes);
235 _position += bytes;
236 }
237}
238
239void NetworkStream::WriteBytes(const void* data, uint32 bytes)
240{

Callers 15

OnNetworkMessageKeyFunction · 0.45
TestNetworking.cppFile · 0.45
CreateMethod · 0.45
ReadJsonBytesMethod · 0.45
ReadJsonMethod · 0.45
ReadVariantMethod · 0.45
AMediaDataSourceReadAtFunction · 0.45
ImportMethod · 0.45
LoadMethod · 0.45
loadMethod · 0.45
Upgrade_4_To_5Method · 0.45

Calls 2

GetLengthFunction · 0.50
GetPositionFunction · 0.50

Tested by

no test coverage detected