예제 #1
0
 public override void EncodeObject(object value, bool arrayEncoding, ByteBuffer buffer)
 {
     if (arrayEncoding)
     {
         AmqpBitConverter.WriteByte(buffer, (sbyte)value);
     }
     else
     {
         ByteEncoding.Encode((sbyte)value, buffer);
     }
 }
예제 #2
0
 /// <summary>
 /// Encodes an 8-bit signed integer and appends the bytes to the buffer.
 /// </summary>
 /// <param name="data">The 8-bit signed integer.</param>
 /// <param name="buffer">The destination buffer.</param>
 public static void EncodeByte(sbyte?data, ByteBuffer buffer)
 {
     ByteEncoding.Encode(data, buffer);
 }