code: @Override
      public int compareTo(IoBuffer that) {
          int n = this.position() + Math.min(this.remaining(), that.remaining());
          for (int i = this.position(), j = that.position(); i < n; i++, j++) {
              byte v1 = this.get(i);
              byte v2 = that.get(j);
              if (v1 == v2) {
                  continue;
              }
              if (v1 < v2) {
                  return -1;
              }
  
              return +1;
          }
          return this.remaining() - that.remaining();
      }
docs: {@inheritDoc}