- Sort Score
- Result 10 results
- Languages All
Results 341 - 350 of 1,461 for Fake (0.04 sec)
-
src/bytes/bytes_test.go
if allocs > 0 { t.Errorf("Equal allocated %v times", allocs) } } func TestEqualExhaustive(t *testing.T) { var size = 128 if testing.Short() { size = 32 } a := make([]byte, size) b := make([]byte, size) b_init := make([]byte, size) // randomish but deterministic data for i := 0; i < size; i++ { a[i] = byte(17 * i) b_init[i] = byte(23*i + 100) } for len := 0; len <= size; len++ {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Aug 19 19:09:04 UTC 2024 - 61.2K bytes - Viewed (0) -
cmd/bootstrap-peer-server_gen.go
if err != nil { err = msgp.WrapError(err, "CmdLines") return } if cap(z.CmdLines) >= int(zb0002) { z.CmdLines = (z.CmdLines)[:zb0002] } else { z.CmdLines = make([]string, zb0002) } for za0001 := range z.CmdLines { z.CmdLines[za0001], err = dc.ReadString() if err != nil { err = msgp.WrapError(err, "CmdLines", za0001) return } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jun 21 14:49:49 UTC 2024 - 7K bytes - Viewed (0) -
cmd/bucket-replication-utils_gen_test.go
b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { v.MarshalMsg(nil) } } func BenchmarkAppendMsgBucketReplicationResyncStatus(b *testing.B) { v := BucketReplicationResyncStatus{} bts := make([]byte, 0, v.Msgsize()) bts, _ = v.MarshalMsg(bts[0:0]) b.SetBytes(int64(len(bts))) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { bts, _ = v.MarshalMsg(bts[0:0]) } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Aug 22 23:53:06 UTC 2022 - 23K bytes - Viewed (0) -
src/archive/zip/reader.go
// to an index into the r.fileList entry that we are // building. They are used to mark duplicate entries. files := make(map[string]int) knownDirs := make(map[string]int) // dirs[name] is true if name is known to be a directory, // because it appears as a prefix in a path. dirs := make(map[string]bool) for _, file := range r.File { isDir := len(file.Name) > 0 && file.Name[len(file.Name)-1] == '/'
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Sat Aug 03 01:05:29 UTC 2024 - 28.1K bytes - Viewed (0) -
guava/src/com/google/common/reflect/TypeResolver.java
* thereof. * * @param formal The type whose type variables or itself is mapped to other type(s). It's almost * always a bug if {@code formal} isn't a type variable and contains no type variable. Make * sure you are passing the two parameters in the right order. * @param actual The type that the formal type variable(s) are mapped to. It can be or contain yet
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 24.2K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/dependencies-with-yield.md
In the same way, you can use `finally` to make sure the exit steps are executed, no matter if there was an exception or not. ```Python hl_lines="3 5" {!../../docs_src/dependencies/tutorial007.py!} ``` ## Sub-dependencies with `yield` You can have sub-dependencies and "trees" of sub-dependencies of any size and shape, and any or all of them can use `yield`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 14K bytes - Viewed (0) -
internal/ringbuffer/README.md
"github.com/smallnest/ringbuffer" ) func main() { rb := ringbuffer.New(1024) // write rb.Write([]byte("abcd")) fmt.Println(rb.Length()) fmt.Println(rb.Free()) // read buf := make([]byte, 4) rb.Read(buf) fmt.Println(string(buf)) } ``` It is possible to use an existing buffer with by replacing `New` with `NewBuffer`. # Blocking vs Non-blocking
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 2.1K bytes - Viewed (0) -
src/buildall.bash
# architectures. # # Originally the Go build system used it as a smoke test to quickly # flag portability issues in builders named "misc-compile" or "all-compile". # As of CL 464955, the build system uses make.bash -compile-only instead, # so this script no longer runs in any automated fashion. # # Options: # -e: stop at first failure if [ ! -f run.bash ]; then echo 'buildall.bash must be run from $GOROOT/src' 1>&2
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Apr 23 17:45:23 UTC 2024 - 2.1K bytes - Viewed (0) -
internal/grid/grid.go
defaultSingleRequestTimeout = time.Minute ) var internalByteBuffer = sync.Pool{ New: func() any { m := make([]byte, 0, defaultBufferSize) return &m }, } var internal32KByteBuffer = sync.Pool{ New: func() any { m := make([]byte, 0, biggerBufMin) return &m }, } // GetByteBuffer can be replaced with a function that returns a small // byte buffer.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 29 18:10:04 UTC 2024 - 6.9K bytes - Viewed (0) -
internal/etag/etag_test.go
Plaintext ETag }{ { // 0 Key: make([]byte, 32), ETag: must("3b83ef96387f14655fc854ddc3c6bd57"), Plaintext: must("3b83ef96387f14655fc854ddc3c6bd57"), }, { // 1 Key: make([]byte, 32), ETag: must("7b976cc68452e003eec7cb0eb631a19a-1"), Plaintext: must("7b976cc68452e003eec7cb0eb631a19a-1"), }, { // 2 Key: make([]byte, 32),
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 18 17:00:54 UTC 2023 - 12.6K bytes - Viewed (0)