Home | History | Annotate | Download | only in tar

Lines Matching defs:Read

44 // The Header.Size determines how many bytes can be read for the next file.
144 // Sparse formats rely on being able to read from the logical data
161 // can only read the following logical data section. It will properly handle
238 // Read the sparse map according to the appropriate format.
337 // * Exactly 0 bytes are read and EOF is hit.
338 // * Exactly 1 block of zeros is read and EOF is hit.
339 // * At least 2 blocks of zeros are read.
343 return nil, nil, err // EOF is okay here; exactly 0 bytes read
347 return nil, nil, err // EOF is okay here; exactly 1 block of zeros read
350 return nil, nil, io.EOF // normal EOF; exactly 2 block of zeros read
460 // Thus, this function will read from the raw io.Reader to fetch extra headers.
493 // There are more entries. Read an extension header and parse its entries.
522 // at least cnt newlines in buf. It will not read more blocks than needed.
609 // Read reads from the current file in the tar archive.
614 // are read back as NUL-bytes.
616 // Calling Read on special types like TypeLink, TypeSymlink, TypeChar,
619 func (tr *Reader) Read(b []byte) (int, error) {
623 n, err := tr.curr.Read(b)
654 nb int64 // Number of remaining bytes to read
657 func (fr *regFileReader) Read(b []byte) (n int, err error) {
662 n, err = fr.r.Read(b)
694 func (sr *sparseFileReader) Read(b []byte) (n int, err error) {
703 var nf int // Bytes read in fragment
796 func (zeroReader) Read(b []byte) (int, error) {
804 // io.ErrUnexpectedEOF when io.EOF is hit before len(b) bytes are read.
814 // io.EOF when it is hit before len(b) bytes are read.
818 nn, err = r.Read(b[n:])