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

Function ReadBytes

Source/Engine/Networking/NetworkMessage.h:86–91  ·  view source on GitHub ↗

Reads raw bytes from the message into the given byte array. The buffer pointer that will be used to store the bytes. Should be of the same length as length or longer. The minimal amount of bytes that the buffer contains.

Source from the content-addressed store, hash-verified

84 /// </param>
85 /// <param name="numBytes">The minimal amount of bytes that the buffer contains.</param>
86 FORCE_INLINE void ReadBytes(uint8* bytes, const int32 numBytes)
87 {
88 ASSERT(Position + numBytes <= BufferSize);
89 Platform::MemoryCopy(bytes, Buffer + Position, numBytes);
90 Position += numBytes;
91 }
92
93 /// <summary>
94 /// Skips bytes from the message.

Callers 15

ReadDataFunction · 0.85
ReadNetworkIdMethod · 0.85
ReadMethod · 0.85
ReadStructureFunction · 0.85
ReadGuidFunction · 0.85
ReadBytesMethod · 0.85
ReadInt64Method · 0.85
ReadInt32Method · 0.85
ReadInt16Method · 0.85
ReadSByteMethod · 0.85
ReadUInt64Method · 0.85
ReadUInt32Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected