Home | History | Annotate | Download | only in tar

Lines Matching defs:Write

18 // Write.WriteHeader begins a new file with the provided Header,
22 pad int64 // Amount of padding to write after current file entry
57 if _, tw.err = tw.w.Write(zeroBlock[:tw.pad]); tw.err != nil {
158 // Write PAX records to the output.
168 // Write each record to a buffer.
178 // Write the extended header file.
210 // Write the sparse map and setup the sparse writer if necessary.
213 if _, err := tw.curr.Write(spb); err != nil {
292 // Write the extended sparse map and setup the sparse writer if necessary.
295 if _, err := tw.w.Write(spb); err != nil {
342 // It uses format to encode the header format and will write data as the body.
368 // Write the header and data.
383 if _, err := tw.w.Write(blk[:]); err != nil {
415 // Write writes to the current file in the tar archive.
416 // Write returns the error ErrWriteTooLong if more than
419 // Calling Write on special types like TypeLink, TypeSymlink, TypeChar,
422 func (tw *Writer) Write(b []byte) (int, error) {
426 n, err := tw.curr.Write(b)
468 _, err = tw.w.Write(zeroBlock[:])
479 nb int64 // Number of remaining bytes to write
482 func (fw *regFileWriter) Write(b []byte) (n int, err error) {
488 n, err = fw.w.Write(b)
519 func (sw *sparseFileWriter) Write(b []byte) (n int, err error) {
532 nf, err = zeroWriter{}.Write(bf)
535 nf, err = sw.fw.Write(bf)
624 func (zeroWriter) Write(b []byte) (int, error) {