Exemplo n.º 1
0
 public override void EncodeObject(object value, bool arrayEncoding, ByteBuffer buffer)
 {
     if (arrayEncoding)
     {
         AmqpBitConverter.WriteDouble(buffer, (double)value);
     }
     else
     {
         DoubleEncoding.Encode((double)value, buffer);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Encodes a 64-bit floating point number and appends the bytes to the buffer.
 /// </summary>
 /// <param name="data">The 64-bit floating point number.</param>
 /// <param name="buffer">The destination buffer.</param>
 public static void EncodeDouble(double?data, ByteBuffer buffer)
 {
     DoubleEncoding.Encode(data, buffer);
 }