Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for prepare (0.17 sec)

  1. src/archive/tar/writer.go

    		return fmt.Errorf("archive/tar: missed writing %d bytes", nb)
    	}
    	if _, tw.err = tw.w.Write(zeroBlock[:tw.pad]); tw.err != nil {
    		return tw.err
    	}
    	tw.pad = 0
    	return nil
    }
    
    // WriteHeader writes hdr and prepares to accept the file's contents.
    // 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.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  2. src/archive/zip/writer.go

    				return false, false
    			}
    			require = true
    		}
    	}
    	return true, require
    }
    
    // prepare performs the bookkeeping operations required at the start of
    // CreateHeader and CreateRaw.
    func (w *Writer) prepare(fh *FileHeader) error {
    	if w.last != nil && !w.last.closed {
    		if err := w.last.close(); err != nil {
    			return err
    		}
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
Back to top