Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for berate (0.17 sec)

  1. src/archive/zip/reader_test.go

    	// Also check that an archive containing a handful of empty
    	// files doesn't cause an issue
    	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()))
    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/bufio/bufio_test.go

    			return
    		}
    	}
    }
    
    func createTestInput(n int) []byte {
    	input := make([]byte, n)
    	for i := range input {
    		// 101 and 251 are arbitrary prime numbers.
    		// The idea is to create an input sequence
    		// which doesn't repeat too frequently.
    		input[i] = byte(i % 251)
    		if i%101 == 0 {
    			input[i] ^= byte(i / 101)
    		}
    	}
    	return input
    }
    
    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)
  3. src/cmd/cgo/gcc.go

    	for i, n := range names {
    		fmt.Fprintf(&b, "__typeof__(%s) *__cgo__%d;\n", n.C, i)
    		if n.Kind == "iconst" {
    			fmt.Fprintf(&b, "enum { __cgo_enum__%d = %s };\n", i, n.C)
    		}
    	}
    
    	// We create a data block initialized with the values,
    	// so we can read them out of the object file.
    	fmt.Fprintf(&b, "long long __cgodebug_ints[] = {\n")
    	for _, n := range names {
    		if n.Kind == "iconst" {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
Back to top