Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for Get2 (0.07 sec)

  1. src/time/zoneinfo_read.go

    		//	42	off[4]
    		//	46	name[namelen]
    		//	46+namelen+xlen+fclen - next header
    		//
    		if get4(buf) != zcheader {
    			break
    		}
    		meth := get2(buf[10:])
    		size := get4(buf[24:])
    		namelen := get2(buf[28:])
    		xlen := get2(buf[30:])
    		fclen := get2(buf[32:])
    		off := get4(buf[42:])
    		zname := buf[46 : 46+namelen]
    		buf = buf[46+namelen+xlen+fclen:]
    		if string(zname) != name {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  2. tests/test_ambiguous_params.py

            AssertionError,
            match=(
                "Cannot specify `Depends` in `Annotated` and default value"
                " together for 'foo'"
            ),
        ):
    
            @app.get("/")
            async def get2(foo: Annotated[int, Depends(dep)] = Depends(dep)):
                pass  # pragma: nocover
    
        with pytest.raises(
            AssertionError,
            match=(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Dec 12 00:22:47 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. src/runtime/mwbbuf.go

    }
    
    // getX returns space in the write barrier buffer to store X pointers.
    // getX will flush the buffer if necessary. Callers should use this as:
    //
    //	buf := &getg().m.p.ptr().wbBuf
    //	p := buf.get2()
    //	p[0], p[1] = old, new
    //	... actual memory write ...
    //
    // The caller must ensure there are no preemption points during the
    // above sequence. There must be no preemption points while buf is in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  4. src/runtime/atomic_pointer.go

    // See go.dev/issue/67401.
    //
    //go:linkname atomicwb
    //go:nosplit
    func atomicwb(ptr *unsafe.Pointer, new unsafe.Pointer) {
    	slot := (*uintptr)(unsafe.Pointer(ptr))
    	buf := getg().m.p.ptr().wbBuf.get2()
    	buf[0] = *slot
    	buf[1] = uintptr(new)
    }
    
    // atomicstorep performs *ptr = new atomically and invokes a write barrier.
    //
    //go:nosplit
    func atomicstorep(ptr unsafe.Pointer, new unsafe.Pointer) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. src/cmd/go/internal/cache/prog.go

    	writeMu sync.Mutex
    }
    
    // ProgCmd is a command that can be issued to a child process.
    //
    // If the interface needs to grow, we can add new commands or new versioned
    // commands like "get2".
    type ProgCmd string
    
    const (
    	cmdGet   = ProgCmd("get")
    	cmdPut   = ProgCmd("put")
    	cmdClose = ProgCmd("close")
    )
    
    // ProgRequest is the JSON-encoded message that's sent from cmd/go to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 19:23:25 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/test/inl_test.go

    			"(*mspan).base",
    			"(*mspan).markBitsForBase",
    			"(*mspan).markBitsForIndex",
    			"(*mspan).writeUserArenaHeapBits",
    			"(*muintptr).set",
    			"(*puintptr).set",
    			"(*wbBuf).get1",
    			"(*wbBuf).get2",
    
    			// Trace-related ones.
    			"traceLocker.ok",
    			"traceEnabled",
    		},
    		"runtime/internal/sys": {},
    		"runtime/internal/math": {
    			"MulUintptr",
    		},
    		"bytes": {
    			"(*Buffer).Bytes",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/CallTest.kt

        assertThat(get1.requestLine).isEqualTo("GET http://android.com/foo HTTP/1.1")
        assertThat(get1.headers["Proxy-Authorization"]).isNull()
        val get2 = server.takeRequest()
        assertThat(get2.requestLine).isEqualTo("GET http://android.com/foo HTTP/1.1")
        assertThat(get2.headers["Proxy-Authorization"]).isEqualTo("password")
      }
    
      /**
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  8. src/runtime/mbitmap.go

    		for {
    			var addr uintptr
    			if tp, addr = tp.next(dst + size); addr == 0 {
    				break
    			}
    			dstx := (*uintptr)(unsafe.Pointer(addr))
    			srcx := (*uintptr)(unsafe.Pointer(src + (addr - dst)))
    			p := buf.get2()
    			p[0] = *dstx
    			p[1] = *srcx
    		}
    	}
    }
    
    // bulkBarrierPreWriteSrcOnly is like bulkBarrierPreWrite but
    // does not execute write barriers for [dst, dst+size).
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  9. tests/associations_has_one_test.go

    	}
    
    	CheckPet(t, pet, pet)
    
    	// Find
    	var pet2 Pet
    	DB.Find(&pet2, "id = ?", pet.ID)
    	DB.Model(&pet2).Association("Toy").Find(&pet2.Toy)
    	CheckPet(t, pet2, pet)
    
    	// Count
    	AssertAssociationCount(t, pet, "Toy", 1, "")
    
    	// Append
    	toy := Toy{Name: "toy-has-one-append"}
    
    	if err := DB.Model(&pet2).Association("Toy").Append(&toy); err != nil {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/artifact/ArtifactBackedResolvedVariantTest.groovy

            def set1 = of([artifact1, artifact2])
            def set2 = of([artifact1])
    
            when:
            set1.artifacts.visitDependencies(visitor)
    
            then:
            1 * visitor.add(artifact1)
            1 * visitor.add(artifact2)
            0 * visitor._
    
            when:
            set2.artifacts.visitDependencies(visitor)
    
            then:
            1 * visitor.add(artifact1)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 04:22:29 UTC 2023
    - 8.4K bytes
    - Viewed (0)
Back to top