code: public DecodingState decode(IoBuffer in, ProtocolDecoderOutput out)
              throws Exception {
          int beginPos = in.position();
          int limit = in.limit();
          for (int i = beginPos; i < limit; i++) {
              byte b = in.get(i);
              if (!canSkip(b)) {
                  in.position(i);
                  int answer = this.skippedBytes;
                  this.skippedBytes = 0;
                  return finishDecode(answer);
              }
              
              skippedBytes++;
          }
  
          in.position(limit);
          return this;
      }
docs: {@inheritDoc}