예제 #1
0
 public void TestSingleDecoding()
 {
     Assert.AreEqual(1.234f,
                     BytesWireFormatting.ReadSingle(Reader
                                                        (new byte[] { 63, 157, 243, 182 })));
 }
예제 #2
0
 /// <summary>
 /// Reads a <see cref="float"/> from the message body.
 /// </summary>
 public float ReadSingle()
 {
     return(BytesWireFormatting.ReadSingle(Reader));
 }