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

Function WriteString

Source/Engine/Networking/NetworkMessage.h:210–214  ·  view source on GitHub ↗

Writes data of type String into the message. UTF-16 encoded.

Source from the content-addressed store, hash-verified

208 /// Writes data of type String into the message. UTF-16 encoded.
209 /// </summary>
210 FORCE_INLINE void WriteString(const StringView& value)
211 {
212 WriteUInt16(value.Length()); // TODO: Use 1-byte length when possible
213 WriteBytes((const uint8*)value.Get(), value.Length() * sizeof(Char));
214 }
215
216 /// <summary>
217 /// Writes data of type String into the message.

Callers 4

RawNumberMethod · 0.85
StringMethod · 0.85
RawNumberMethod · 0.85
StringMethod · 0.85

Calls 2

LengthMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected