Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for snprintf (0.08 sec)

  1. src/bytes/bytes_test.go

    				b[i+j] = byte(0)
    			}
    		}
    	}
    }
    
    var bmbuf []byte
    
    func valName(x int) string {
    	if s := x >> 20; s<<20 == x {
    		return fmt.Sprintf("%dM", s)
    	}
    	if s := x >> 10; s<<10 == x {
    		return fmt.Sprintf("%dK", s)
    	}
    	return fmt.Sprint(x)
    }
    
    func benchBytes(b *testing.B, sizes []int, f func(b *testing.B, n int)) {
    	for _, n := range sizes {
    		if isRaceBuilder && n > 4<<10 {
    			continue
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Tue Dec 23 23:54:14 UTC 2025
    - 62.9K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/endtoend_test.go

    			}
    			str := f[index]
    			n, err := strconv.Atoi(str[:len(str)-len(suf)])
    			if err == nil {
    				f[index] = fmt.Sprintf("%d%s", seq+n, suf)
    			}
    		}
    
    		if len(f) == 1 {
    			printed = f[0]
    		} else {
    			printed = f[0] + "\t" + strings.Join(f[1:], " ")
    		}
    
    		want := fmt.Sprintf("%05d (%s:%d)\t%s", seq, input, lineno, printed)
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Tue Dec 23 18:45:48 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  3. src/archive/tar/reader_test.go

    					continue
    				}
    				h := crc32.NewIEEE()
    				_, err = io.CopyBuffer(h, tr, rdbuf) // Effectively an incremental read
    				if err != nil {
    					break
    				}
    				chksums = append(chksums, fmt.Sprintf("%x", h.Sum(nil)))
    			}
    
    			for i, hdr := range hdrs {
    				if i >= len(v.headers) {
    					t.Fatalf("entry %d: unexpected header:\ngot %+v", i, *hdr)
    				}
    				if !reflect.DeepEqual(*hdr, *v.headers[i]) {
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Mon Dec 15 16:34:13 UTC 2025
    - 47.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        long t0 = System.nanoTime();
        try {
          super.runTest();
        } finally {
          long elapsedMillis = (System.nanoTime() - t0) / (1000L * 1000L);
          if (elapsedMillis >= profileThreshold)
            System.out.printf("%n%s: %d%n", toString(), elapsedMillis);
        }
      }
    
      //     /**
      //      * Runs all JSR166 unit tests using junit.textui.TestRunner
      //      */
      //     public static void main(String[] args) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 37.8K bytes
    - Viewed (0)
  5. doc/go_spec.html

    </p>
    
    <pre>
    type TimeZone int
    
    const (
    	EST TimeZone = -(5 + iota)
    	CST
    	MST
    	PST
    )
    
    func (tz TimeZone) String() string {
    	return fmt.Sprintf("GMT%+dh", tz)
    }
    </pre>
    
    <p>
    If the type definition specifies <a href="#Type_parameter_declarations">type parameters</a>,
    the type name denotes a <i>generic type</i>.
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Tue Dec 02 23:07:19 UTC 2025
    - 286.5K bytes
    - Viewed (1)
  6. lib/fips140/v1.1.0-rc1.zip

    se(); err != nil { log.Fatal(err) } for _, c := range curves { p := strings.ToLower(c.P) elementLen := (c.Params.BitSize + 7) / 8 B := fmt.Sprintf("%#v", c.Params.B.FillBytes(make([]byte, elementLen))) Gx := fmt.Sprintf("%#v", c.Params.Gx.FillBytes(make([]byte, elementLen))) Gy := fmt.Sprintf("%#v", c.Params.Gy.FillBytes(make([]byte, elementLen))) log.Printf("Generating %s.go...", p) f, err := os.Create(p + ".go") if err != nil { log.Fatal(err) } defer f.Close() buf := &bytes.Buffer{} if err := t.Execute(buf,...
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Thu Dec 11 16:27:41 UTC 2025
    - 663K bytes
    - Viewed (0)
Back to top