コード例 #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));
 }