Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CreateRaw (0.05 sec)

  1. src/archive/zip/writer.go

    		return err
    	}
    	_, err := w.Write(h.Extra)
    	return err
    }
    
    // CreateRaw adds a file to the zip archive using the provided [FileHeader] and
    // returns a [Writer] to which the file contents should be written. The file's
    // contents must be written to the io.Writer before the next call to [Writer.Create],
    // [Writer.CreateHeader], [Writer.CreateRaw], or [Writer.Close].
    //
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  2. src/archive/zip/writer_test.go

    			Method:             f.method,
    			Flags:              f.flags,
    			CRC32:              f.crc32,
    			CompressedSize64:   f.compressedSize,
    			UncompressedSize64: f.uncompressedSize,
    		}
    		w, err := w.CreateRaw(h)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if compressedContent != nil {
    			_, err = w.Write(compressedContent)
    		} else {
    			_, err = w.Write(f.content)
    		}
    		if err != nil {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top