private int readMedium(ByteBuffer buffer) {
        return (buffer.get() & 0xff) << 16
                | (buffer.get() & 0xff) << 8
                | (buffer.get() & 0xff);
    }
Decodes HTTP2 request and response packets.

@author Megatron King
@since 2019/1/5 14:19
netbare-core/src/main/java/com/github/megatronking/netbare/http2/Http2DecodeInterceptor.java