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

Method ReadSingle

Source/Engine/Networking/NetworkStream.cs:208–213  ·  view source on GitHub ↗

Reads and returns data of type from the message.

()

Source from the content-addressed store, hash-verified

206 /// Reads and returns data of type <see cref="Single"/> from the message.
207 /// </summary>
208 public float ReadSingle()
209 {
210 float value = 0.0f;
211 ReadBytes((byte*)&value, sizeof(float));
212 return value;
213 }
214
215 /// <summary>
216 /// Writes data of type <see cref="Double"/> into the message.

Callers 15

ReadColorMethod · 0.45
ReadVector2Method · 0.45
ReadVector3Method · 0.45
ReadVector4Method · 0.45
ReadFloat2Method · 0.45
ReadFloat3Method · 0.45
ReadFloat4Method · 0.45
ReadQuaternionMethod · 0.45
ReadBoundingSphereMethod · 0.45
ReadMatrixMethod · 0.45
ReadVariantMethod · 0.45
LoadMethod · 0.45

Calls 1

ReadBytesFunction · 0.85

Tested by

no test coverage detected