public static Guid ReadUuid(ByteBuffer buffer, byte formatCode) { if (formatCode == FormatCode.Uuid) { return AmqpBitConverter.ReadUuid(buffer); } else { throw InvalidFormatCodeException(formatCode, buffer.Offset); } }