Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for fwrite (0.16 sec)

  1. src/bufio/bufio_test.go

    		for j := 0; j < len(bufsizes); j++ {
    			nwrite := bufsizes[i]
    			bs := bufsizes[j]
    
    			// Write nwrite bytes using buffer size bs.
    			// Check that the right amount makes it out
    			// and that the data is correct.
    
    			w.Reset()
    			buf := NewWriterSize(w, bs)
    			context := fmt.Sprintf("nwrite=%d bufsize=%d", nwrite, bs)
    			n, e1 := buf.Write(data[0:nwrite])
    			if e1 != nil || n != nwrite {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  2. src/archive/zip/reader_test.go

    	b := bytes.NewBuffer(nil)
    	w := NewWriter(b)
    	for i := 0; i < 5; i++ {
    		_, err := w.Create("")
    		if err != nil {
    			t.Fatalf("Writer.Create failed: %s", err)
    		}
    	}
    	if err := w.Close(); err != nil {
    		t.Fatalf("Writer.Close failed: %s", err)
    	}
    	r, err := NewReader(bytes.NewReader(b.Bytes()), int64(b.Len()))
    	if err != nil {
    		t.Fatalf("NewReader failed: %s", err)
    	}
    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)
  3. src/cmd/cgo/gcc.go

    	if *debugGcc {
    		fmt.Fprintf(os.Stderr, "$ %s <<EOF\n", strings.Join(args, " "))
    		os.Stderr.Write(stdin)
    		fmt.Fprint(os.Stderr, "EOF\n")
    	}
    	stdout, stderr, ok := run(stdin, args)
    	if *debugGcc {
    		os.Stderr.Write(stdout)
    		os.Stderr.Write(stderr)
    	}
    	if !ok {
    		os.Stderr.Write(stderr)
    		os.Exit(2)
    	}
    	return string(stdout), string(stderr)
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  4. src/bytes/bytes_test.go

    				t.Errorf("last appended result was %s; want %s", x, want)
    			}
    		}
    	}
    }
    
    // Test case for any function which accepts and returns a byte slice.
    // For ease of creation, we write the input byte slice as a string.
    type StringTest struct {
    	in  string
    	out []byte
    }
    
    var upperTests = []StringTest{
    	{"", []byte("")},
    	{"ONLYUPPER", []byte("ONLYUPPER")},
    	{"abc", []byte("ABC")},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top