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

Function WriteStringAnsi

Source/Engine/Networking/NetworkMessage.h:219–223  ·  view source on GitHub ↗

Writes data of type String into the message.

Source from the content-addressed store, hash-verified

217 /// Writes data of type String into the message.
218 /// </summary>
219 FORCE_INLINE void WriteStringAnsi(const StringAnsiView& value)
220 {
221 WriteUInt16(value.Length()); // TODO: Use 1-byte length when possible
222 WriteBytes((const uint8*)value.Get(), value.Length());
223 }
224
225 /// <summary>
226 /// Reads and returns data of type String from the message. UTF-16 encoded. Data valid within message lifetime.

Callers 1

WriteNetworkNameMethod · 0.85

Calls 2

LengthMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected