Esempio n. 1
0
 internal SectionReader(ReaderAt r, long off, long bas, long limit)
 {
     this.r     = r;
     this.off   = off;
     this.bas   = off;
     this.limit = limit;
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 /// <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));
 }