- Sort Score
- Result 10 results
- Languages All
Results 101 - 108 of 108 for Sizes (0.06 sec)
-
src/os/dir_windows.go
// the FILE_ID_BOTH_DIR_INFO structure is 105 bytes, so dirBufSize // should not be set below 1024 bytes (512+105+safety buffer). // Windows 8.1 and earlier only works with buffer sizes up to 64 kB. dirBufSize = 64 * 1024 // 64kB ) var dirBufPool = sync.Pool{ New: func() any { // The buffer must be at least a block long. buf := make([]byte, dirBufSize) return &buf }, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 20:52:06 UTC 2024 - 7.7K bytes - Viewed (0) -
cmd/erasure-coding.go
failOnErr(err) encoded, err := e.EncodeData(GlobalContext, testData[:]) failOnErr(err) hash := xxhash.New() for i, data := range encoded { // Write index to keep track of sizes of each. _, err = hash.Write([]byte{byte(i)}) failOnErr(err) _, err = hash.Write(data) failOnErr(err) got[conf] = map[ErasureAlgo]uint64{algo: hash.Sum64()} }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Jan 31 02:11:45 UTC 2024 - 8.6K bytes - Viewed (0) -
src/go/types/const.go
x.val = constant.MakeUnknown() } } // representableConst reports whether x can be represented as // value of the given basic type and for the configuration // provided (only needed for int/uint sizes). // // If rounded != nil, *rounded is set to the rounded value of x for // representable floating-point and complex values, and to an Int // value for integer values; it is left alone otherwise.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 7.6K bytes - Viewed (0) -
src/go/types/gotype.go
FakeImportC: true, Error: func(err error) { if !*allErrors && errorCount >= 10 { panic(bailout{}) } report(err) }, Importer: importer.ForCompiler(fset, *compiler, nil), Sizes: types.SizesFor(build.Default.Compiler, build.Default.GOARCH), } defer func() { switch p := recover().(type) { case nil, bailout: // normal return or early exit default: // re-panic
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 18 17:59:44 UTC 2022 - 8.3K bytes - Viewed (0) -
src/strconv/atoi.go
// underscore characters are permitted as defined by the Go syntax for // [integer literals]. // // The bitSize argument specifies the integer type // that the result must fit into. Bit sizes 0, 8, 16, 32, and 64 // correspond to int, int8, int16, int32, and int64. // If bitSize is below 0 or above 64, an error is returned. // // The errors that ParseInt returns have concrete type [*NumError]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun May 05 00:24:26 UTC 2024 - 8.3K bytes - Viewed (0) -
cmd/erasure-decode.go
// Subsequent reads will reuse this buffer. p.buf[bufIdx] = make([]byte, p.shardSize) } // For the last shard, the shardsize might be less than previous shard sizes. // Hence the following statement ensures that the buffer size is reset to the right size. p.buf[bufIdx] = p.buf[bufIdx][:p.shardSize] n, err := rr.ReadAt(p.buf[bufIdx], p.offset) if err != nil { switch {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue May 21 14:36:21 UTC 2024 - 9.4K bytes - Viewed (0) -
src/testing/iotest/reader.go
err = fmt.Errorf("Read(%d bytes at offset %d): %v", n, r.off, err) } r.off += n return n, err } // TestReader tests that reading from r returns the expected file content. // It does reads of different sizes, until EOF. // If r implements [io.ReaderAt] or [io.Seeker], TestReader also checks // that those operations behave as they should. // // If TestReader finds any misbehaviors, it returns an error reporting them.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 17:55:47 UTC 2023 - 8K bytes - Viewed (0) -
src/internal/trace/internal/testgen/go122/trace.go
panic(err.Error()) } } // Trace represents an execution trace for testing. // // It does a little bit of work to ensure that the produced trace is valid, // just for convenience. It mainly tracks batches and batch sizes (so they're // trivially correct), tracks strings and stacks, and makes sure emitted string // and stack batches are valid. That last part can be controlled by a few options. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 9.7K bytes - Viewed (0)