code: public final LogBuffer duplicate() {
          // XXX: Do momery copy avoid buffer modified.
          byte[] buf = Arrays.copyOfRange(buffer, origin, origin + limit);
          return new LogBuffer(buf, 0, limit);
      }
docs: Return next n bytes in this buffer.