code: public void skipLengthEncodedBytes() {
      int type = this.buf[this.position++] & 0xff;
      switch (type) {
        case 251:
          break;
  
        case 252:
          position += 2 + (0xffff & (((buf[position] & 0xff) + ((buf[position + 1] & 0xff) << 8))));
          break;
  
        case 253:
          position += 3 + (0xffffff & ((buf[position] & 0xff)
              + ((buf[position + 1] & 0xff) << 8)
              + ((buf[position + 2] & 0xff) << 16)));
          break;
  
        case 254:
          position += 8 + ((buf[position] & 0xff)
              + ((long) (buf[position + 1] & 0xff) << 8)
              + ((long) (buf[position + 2] & 0xff) << 16)
              + ((long) (buf[position + 3] & 0xff) << 24)
              + ((long) (buf[position + 4] & 0xff) << 32)
              + ((long) (buf[position + 5] & 0xff) << 40)
              + ((long) (buf[position + 6] & 0xff) << 48)
              + ((long) (buf[position + 7] & 0xff) << 56));
          break;
  
        default:
          position += type;
          break;
      }
    }
docs: Skip next length encode binary data.