Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for close (0.25 sec)

  1. src/archive/zip/reader_test.go

    		if size != ft.Size {
    			t.Errorf("%v: uncompressed size %#x, want %#x", ft.Name, size, ft.Size)
    		}
    		r.Close()
    		return
    	}
    
    	var b bytes.Buffer
    	_, err = io.Copy(&b, r)
    	if err != ft.ContentErr {
    		t.Errorf("copying contents: %v (want %v)", err, ft.ContentErr)
    	}
    	if err != nil {
    		return
    	}
    	r.Close()
    
    	if g := uint64(b.Len()); g != size {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  2. src/archive/zip/fuzz_test.go

    				t.Fatalf("unable to write previously parsed header: %s", err)
    			}
    			if _, err := ww.Write(f.content); err != nil {
    				t.Fatalf("unable to write previously parsed content: %s", err)
    			}
    		}
    
    		if err := w.Close(); err != nil {
    			t.Fatalf("Unable to write archive: %s", err)
    		}
    
    		// TODO: We may want to check if the archive roundtrips.
    	})
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 13 18:06:33 GMT 2022
    - 1.7K bytes
    - Viewed (0)
  3. src/cmd/api/api_test.go

    		if *updateGolden {
    			os.Remove(goldenFile)
    			f, err := os.Create(goldenFile)
    			if err != nil {
    				t.Fatal(err)
    			}
    			for _, feat := range w.Features() {
    				fmt.Fprintf(f, "%s\n", feat)
    			}
    			f.Close()
    		}
    
    		bs, err := os.ReadFile(goldenFile)
    		if err != nil {
    			t.Fatalf("opening golden.txt for package %q: %v", fi.Name(), err)
    		}
    		wanted := strings.Split(string(bs), "\n")
    		sort.Strings(wanted)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  4. doc/go1.17_spec.html

    they cannot be used as function values.
    </p>
    
    <h3 id="Close">Close</h3>
    
    <p>
    For a channel <code>c</code>, the built-in function <code>close(c)</code>
    records that no more values will be sent on the channel.
    It is an error if <code>c</code> is a receive-only channel.
    Sending to or closing a closed channel causes a <a href="#Run_time_panics">run-time panic</a>.
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  5. misc/wasm/wasm_exec.js

    					return;
    				}
    				const n = this.writeSync(fd, buf);
    				callback(null, n);
    			},
    			chmod(path, mode, callback) { callback(enosys()); },
    			chown(path, uid, gid, callback) { callback(enosys()); },
    			close(fd, callback) { callback(enosys()); },
    			fchmod(fd, mode, callback) { callback(enosys()); },
    			fchown(fd, uid, gid, callback) { callback(enosys()); },
    			fstat(fd, callback) { callback(enosys()); },
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  6. api/go1.3.txt

    pkg syscall (netbsd-386), const CLONE_CSIGNAL = 255
    pkg syscall (netbsd-386), const CLONE_CSIGNAL ideal-int
    pkg syscall (netbsd-386), const CLONE_FILES = 1024
    pkg syscall (netbsd-386), const CLONE_FILES ideal-int
    pkg syscall (netbsd-386), const CLONE_FS = 512
    pkg syscall (netbsd-386), const CLONE_FS ideal-int
    pkg syscall (netbsd-386), const CLONE_PID = 4096
    pkg syscall (netbsd-386), const CLONE_PID ideal-int
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Jun 02 02:45:00 GMT 2014
    - 117K bytes
    - Viewed (0)
  7. api/go1.13.txt

    pkg syscall (netbsd-arm64), const CLONE_PTRACE = 8192
    pkg syscall (netbsd-arm64), const CLONE_PTRACE ideal-int
    pkg syscall (netbsd-arm64), const CLONE_SIGHAND = 2048
    pkg syscall (netbsd-arm64), const CLONE_SIGHAND ideal-int
    pkg syscall (netbsd-arm64), const CLONE_VFORK = 16384
    pkg syscall (netbsd-arm64), const CLONE_VFORK ideal-int
    pkg syscall (netbsd-arm64), const CLONE_VM = 256
    pkg syscall (netbsd-arm64), const CLONE_VM ideal-int
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
  8. api/go1.5.txt

    pkg mime/quotedprintable, func NewReader(io.Reader) *Reader
    pkg mime/quotedprintable, func NewWriter(io.Writer) *Writer
    pkg mime/quotedprintable, method (*Reader) Read([]uint8) (int, error)
    pkg mime/quotedprintable, method (*Writer) Close() error
    pkg mime/quotedprintable, method (*Writer) Write([]uint8) (int, error)
    pkg mime/quotedprintable, type Reader struct
    pkg mime/quotedprintable, type Writer struct
    pkg mime/quotedprintable, type Writer struct, Binary bool
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
  9. src/arena/arena.go

    // slice after free may result in a fault, but this fault is also not guaranteed.
    func MakeSlice[T any](a *Arena, len, cap int) []T {
    	var sl []T
    	runtime_arena_arena_Slice(a.a, &sl, cap)
    	return sl[:len]
    }
    
    // Clone makes a shallow copy of the input value that is no longer bound to any
    // arena it may have been allocated from, returning the copy. If it was not
    // allocated from an arena, it is returned untouched. This function is useful
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 4.3K bytes
    - Viewed (0)
  10. src/archive/zip/zip_test.go

    			Method: Store, // Deflate is too slow when it is compiled with -race flag
    		})
    		if err != nil {
    			t.Fatalf("creating file %d: %v", i, err)
    		}
    	}
    	if err := w.Close(); err != nil {
    		t.Fatalf("Writer.Close: %v", err)
    	}
    	s := buf.String()
    	zr, err := NewReader(strings.NewReader(s), int64(len(s)))
    	if err != nil {
    		t.Fatalf("NewReader: %v", err)
    	}
    	if got := len(zr.File); got != nFiles {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
Back to top