Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Header (1.23 sec)

  1. src/archive/tar/writer.go

    // The Header.Size determines how many bytes can be written for the next file.
    // If the current file is not fully written, then this returns an error.
    // This implicitly flushes any padding necessary before writing the header.
    func (tw *Writer) WriteHeader(hdr *Header) error {
    	if err := tw.Flush(); err != nil {
    		return err
    	}
    	tw.hdr = *hdr // Shallow copy of Header
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  2. src/compress/zlib/writer.go

    	}
    	if z.digest != nil {
    		z.digest.Reset()
    	}
    	z.err = nil
    	z.scratch = [4]byte{}
    	z.wroteHeader = false
    }
    
    // writeHeader writes the ZLIB header.
    func (z *Writer) writeHeader() (err error) {
    	z.wroteHeader = true
    	// ZLIB has a two-byte header (as documented in RFC 1950).
    	// The first four bits is the CINFO (compression info), which is 7 for the default deflate window size.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 27 18:51:27 UTC 2023
    - 5.2K bytes
    - Viewed (0)
Back to top