code: public DecodingState finishDecode(ProtocolDecoderOutput out)
              throws Exception {
          try {
              if (buffer == null) {
                  buffer = IoBuffer.allocate(0);
              }
              buffer.flip();
              return finishDecode(buffer, out);
          } finally {
              buffer = null;
          }
      }
docs: {@inheritDoc}