internal SectionReader(ReaderAt r, long off, long bas, long limit) { this.r = r; this.off = off; this.bas = off; this.limit = limit; }
public SectionReader(ReaderAt r = default, long @base = default, long off = default, long limit = default) { this.r = r; this.@base = @base; this.off = off; this.limit = limit; }
/// <summary> /// NewSectionReader returns a SectionReader that reads from r starting at offset off and stops with EOF after n bytes. /// </summary> public static SectionReader NewSectionReader(ReaderAt r, long off, long n) { return(new SectionReader(r, off, off, off + n)); }