Skip to content

Commit

Permalink
Fix PCL build error.
Browse files Browse the repository at this point in the history
  • Loading branch information
xinchen10 committed Mar 22, 2023
1 parent 027efe8 commit d97cb8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Microsoft.Azure.Amqp/Amqp/Encoding/AmqpBitConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ public static double ReadDouble(ByteBuffer buffer)

public static Guid ReadUuid(ByteBuffer buffer)
{
#if PCL
throw new NotImplementedException();
#else
uint a = ReadUInt(buffer);
ushort b = ReadUShort(buffer);
ushort c = ReadUShort(buffer);
Expand All @@ -119,6 +122,7 @@ public static Guid ReadUuid(ByteBuffer buffer)
byte k = buffer.Buffer[buffer.Offset + 7];
buffer.Complete(FixedWidth.ULong);
return new Guid(a, b, c, d, e, f, g, h, i, j, k);
#endif
}

public static void ReadBytes(ByteBuffer buffer, byte[] data, int offset, int count)
Expand Down

0 comments on commit d97cb8d

Please sign in to comment.