Exemplo n.º 1
0
        public void TestSingleEncoding()
        {
            NetworkBinaryWriter w = Writer();

            BytesWireFormatting.WriteSingle(w, 1.234f);
            Check(w, new byte[] { 63, 157, 243, 182 });
        }
 /// <summary>
 /// Writes a <see cref="float"/> value into the message body being assembled.
 /// </summary>
 public IBytesMessageBuilder WriteSingle(float value)
 {
     BytesWireFormatting.WriteSingle(Writer, value);
     return(this);
 }