Microsoft.Azure.Amqp.Encoding.FormatCode.HasExtType C# (CSharp) Method

HasExtType() public method

public HasExtType ( ) : bool
return bool
        public bool HasExtType()
        {
            return (this.type & 0xF) == 0xF;
        }

Same methods

FormatCode::HasExtType ( byte type ) : bool

Usage Example

Example #1
0
        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));
        }