Exemplo n.º 1
0
 public override void EncodeObject(object value, bool arrayEncoding, ByteBuffer buffer)
 {
     if (arrayEncoding)
     {
         AmqpBitConverter.WriteUInt(buffer, (uint)value);
     }
     else
     {
         UIntEncoding.Encode((uint)value, buffer);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Encodes a 32-bit unsigned integer and appends the bytes to the buffer.
 /// </summary>
 /// <param name="data">The 32-bit unsigned integer.</param>
 /// <param name="buffer">The destination buffer.</param>
 public static void EncodeUInt(uint?data, ByteBuffer buffer)
 {
     UIntEncoding.Encode(data, buffer);
 }