Home | History | Annotate | Download | only in tar

Lines Matching refs:WriteHeader

31 // Call WriteHeader to begin a new file, and then call Write to supply that file's data,
41 hdrBuff block // buffer to use in writeHeader when writing a regular header
42 paxHdrBuff block // buffer to use in writeHeader when writing a PAX header
76 // WriteHeader writes hdr and prepares to accept the file's contents.
77 // WriteHeader calls Flush if it is not the first header.
79 func (tw *Writer) WriteHeader(hdr *Header) error {
80 return tw.writeHeader(hdr, true)
83 // WriteHeader writes hdr and prepares to accept the file's contents.
84 // WriteHeader calls Flush if it is not the first header.
88 func (tw *Writer) writeHeader(hdr *Header, allowPax bool) error {
309 if err := tw.writeHeader(ext, false); err != nil {
323 // hdr.Size bytes are written after WriteHeader.