public static FormatCode ReadFormatCode(ByteBuffer buffer)
{
byte type = AmqpBitConverter.ReadUByte(buffer);
byte extType = 0;
if (FormatCode.HasExtType(type))
{
extType = AmqpBitConverter.ReadUByte(buffer);
}
return(new FormatCode(type, extType));
}