netifi-httpgateway/src/main/java/com/netifi/httpgateway/bridge/codec/ByteToMessageDecoder.java
/**
   * By default this will just call {@link #decode(ByteBuf, UnicastProcessor)} but sub-classes may
   * override this for some special cleanup operation.
   */
By default this will just call  #decode(ByteBuf, UnicastProcessor) but sub-classes may
override this for some special cleanup operation.
By default this will just call #decode ( ByteBuf UnicastProcessor ) but sub - classes may override this for some special cleanup operation .
protected void decodeLast(ByteBuf in, UnicastProcessor<Object> out) {
    if (in.isReadable()) {
      decode(in, out);
    }
  }
protected void decodeLast ( ByteBuf in , UnicastProcessor < Object > out ) { if ( in . isReadable ( ) ) { decode ( in , out ) ; } }
By default this will just call {@link #decode(ByteBuf, UnicastProcessor)} but sub-classes may
 override this for some special cleanup operation.
By default this will just call { @link #decode ( ByteBuf UnicastProcessor ) } but sub - classes may override this for some special cleanup operation .
// Only call decode() if there is something left in the buffer to decode. // See https://github.com/netty/netty/issues/4386