Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/bufio/bufio_test.go

    	}
    	b1.Flush()
    	if w1 != 3 {
    		t.Fatalf("flush 1200 + 1389 'x's: got %d writes, want 3", w1)
    	}
    }
    
    // A writeCountingDiscard is like io.Discard and counts the number of times
    // Write is called on it.
    type writeCountingDiscard int
    
    func (w *writeCountingDiscard) Write(p []byte) (int, error) {
    	*w++
    	return len(p), nil
    }
    
    type negativeReader int
    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/cmd/cgo/gcc.go

    		} else {
    			n.Type = conv.Type(types[i], pos)
    			switch n.Kind {
    			case "iconst":
    				if i < len(ints) {
    					if _, ok := types[i].(*dwarf.UintType); ok {
    						n.Const = fmt.Sprintf("%#x", uint64(ints[i]))
    					} else {
    						n.Const = fmt.Sprintf("%#x", ints[i])
    					}
    				}
    			case "fconst":
    				if i >= len(floats) {
    					break
    				}
    				switch base(types[i]).(type) {
    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