Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for RetPtr (0.11 sec)

  1. test/fixedbugs/issue9537.dir/b.go

    )
    
    type X struct {
    	*a.X
    }
    
    type Intf interface {
    	Get()        []byte
    	RetPtr(int)  *int
    	RetRPtr(int) (int, *int)
    }
    
    func main() {
    	x := &a.X{T: [32]byte{1, 2, 3, 4}}
    	var ix Intf = X{x}
    	t1 := ix.Get()
    	t2 := x.Get()
    	if !bytes.Equal(t1, t2) {
    		panic(t1)
    	}
    
    	p1 := ix.RetPtr(5)
    	p2 := x.RetPtr(7)
    	if *p1 != 6 || *p2 != 8 {
    		panic(*p1)
    	}
    
    	r1, r2 := ix.RetRPtr(10)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 22 03:25:12 UTC 2015
    - 678 bytes
    - Viewed (0)
  2. test/fixedbugs/issue9537.dir/a.go

    // license that can be found in the LICENSE file.
    
    package a
    
    type X struct {
    	T [32]byte
    }
    
    func (x *X) Get() []byte {
    	t := x.T
    	return t[:]
    }
    
    func (x *X) RetPtr(i int) *int {
    	i++
    	return &i
    }
    
    func (x *X) RetRPtr(i int) (r1 int, r2 *int) {
    	r1 = i + 1
    	r2 = &r1
    	return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 22 03:25:12 UTC 2015
    - 386 bytes
    - Viewed (0)
  3. cmd/post-policy_test.go

    		keyConditionStr, contentLengthCondStr, algorithmConditionStr, dateConditionStr, credentialConditionStr, uuidConditionStr)
    	retStr := "{"
    	retStr = retStr + expirationStr + ","
    	retStr += conditionStr
    	retStr += "}"
    
    	return []byte(retStr)
    }
    
    // newPostPolicyBytesV4 - creates a bare bones postpolicy string with key and bucket matches.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  4. src/runtime/mgcstack.go

    // Returns 0 if there are no more pointers available.
    //
    // This prefers non-conservative pointers so we scan stack objects
    // precisely if there are any non-conservative pointers to them.
    func (s *stackScanState) getPtr() (p uintptr, conservative bool) {
    	for _, head := range []**stackWorkBuf{&s.buf, &s.cbuf} {
    		buf := *head
    		if buf == nil {
    			// Never had any data.
    			continue
    		}
    		if buf.nobj == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 21:06:52 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  5. src/runtime/mgcmark.go

    	//
    	// The state's pointer queue prioritizes precise pointers over
    	// conservative pointers so that we'll prefer scanning stack
    	// objects precisely.
    	state.buildIndex()
    	for {
    		p, conservative := state.getPtr()
    		if p == 0 {
    			break
    		}
    		obj := state.findObject(p)
    		if obj == nil {
    			continue
    		}
    		r := obj.r
    		if r == nil {
    			// We've already scanned this object.
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    )
    
    // EscapeCommFunction constants. See https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-escapecommfunction.
    const (
    	SETXOFF  = 1
    	SETXON   = 2
    	SETRTS   = 3
    	CLRRTS   = 4
    	SETDTR   = 5
    	CLRDTR   = 6
    	SETBREAK = 8
    	CLRBREAK = 9
    )
    
    // PurgeComm constants. See https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-purgecomm.
    const (
    	PURGE_TXABORT = 0x0001
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
Back to top