Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 462 for original (0.12 sec)

  1. src/html/template/clone_test.go

    // to the copy but not to the original."
    func TestCloneThenParse(t *testing.T) {
    	t0 := Must(New("t0").Parse(`{{define "a"}}{{template "embedded"}}{{end}}`))
    	t1 := Must(t0.Clone())
    	Must(t1.Parse(`{{define "embedded"}}t1{{end}}`))
    	if len(t0.Templates())+1 != len(t1.Templates()) {
    		t.Error("adding a template to a clone added it to the original")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:48:16 UTC 2022
    - 8K bytes
    - Viewed (0)
  2. src/crypto/tls/handshake_messages.go

    			return false
    		}
    	}
    
    	return true
    }
    
    func (m *clientHelloMsg) originalBytes() []byte {
    	return m.original
    }
    
    func (m *clientHelloMsg) clone() *clientHelloMsg {
    	return &clientHelloMsg{
    		original:                         slices.Clone(m.original),
    		vers:                             m.vers,
    		random:                           slices.Clone(m.random),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  3. src/internal/weak/pointer.go

    	if ptr != nil {
    		u = runtime_registerWeakPointer(unsafe.Pointer(ptr))
    	}
    	runtime.KeepAlive(ptr)
    	return Pointer[T]{u}
    }
    
    // Strong creates a strong pointer from the weak pointer.
    // Returns nil if the original value for the weak pointer was reclaimed by
    // the garbage collector.
    // If a weak pointer points to an object with a finalizer, then Strong will
    // return nil as soon as the object's finalizer is queued for execution.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:13:25 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/cgotest/overlaydir.go

    			if err != nil {
    				return err
    			}
    			perm = info.Mode() & os.ModePerm
    		}
    
    		// Always copy directories (don't symlink them).
    		// If we add a file in the overlay, we don't want to add it in the original.
    		if info.IsDir() {
    			return os.MkdirAll(dstPath, perm|0200)
    		}
    
    		// If the OS supports symlinks, use them instead of copying bytes.
    		if err := os.Symlink(srcPath, dstPath); err == nil {
    			return nil
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 20:56:09 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. test/alias2.go

    func (A0) m1()  {} // ERROR "T0\.m1 already declared|redefinition of .m1."
    func (A0) m2()  {}
    
    // Type aliases and the original type name can be used interchangeably.
    var _ A0 = T0{}
    var _ T0 = A0{}
    
    // But aliases and original types cannot be used with new types based on them.
    var _ N0 = T0{} // ERROR "cannot use T0{} \(value of type T0\) as N0 value in variable declaration"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:09:14 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. src/crypto/rsa/boring.go

    // a particular key is never again modified, but that has not been a
    // stated assumption before. Just in case there is any existing code that
    // does modify the key between operations, we save the original values
    // alongside the cached BoringCrypto key and check that the real key
    // still matches before using the cached key. The theory is that the real
    // operations are significantly more expensive than the comparison.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 00:30:19 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ir/type.go

    	//
    	// BUG(mdempsky): If ITab is non-nil, RType may be nil.
    	RType Node
    
    	// ITab is an expression that yields a *runtime.itab value
    	// representing the asserted type within the assertee expression's
    	// original interface type.
    	//
    	// ITab is only used for assertions (including type switches) from
    	// non-empty interface type to a concrete (i.e., non-interface)
    	// type. For all other assertions, ITab is nil.
    	ITab Node
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Aug 20 05:56:49 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. src/internal/types/testdata/check/constdecl.go

    }
    
    // Test cases for errors in inherited constant initialization expressions.
    // Errors related to inherited initialization expressions must appear at
    // the constant identifier being declared, not at the original expression
    // (issues #42991, #42992).
    const (
    	_ byte = 255 + iota
    	/* some gap */
    	_ // ERROR "overflows"
    	/* some gap */
    	/* some gap */ _ /* ERROR "overflows" */; _ /* ERROR "overflows" */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 16:11:16 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  9. src/image/ycbcr.go

    	return (y-p.Rect.Min.Y)*p.CStride + (x - p.Rect.Min.X)
    }
    
    // SubImage returns an image representing the portion of the image p visible
    // through r. The returned value shares pixels with the original image.
    func (p *YCbCr) SubImage(r Rectangle) Image {
    	r = r.Intersect(p.Rect)
    	// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  10. src/cmd/go/internal/cmdflag/flag.go

    // A FlagNotDefinedError indicates a flag-like argument that does not correspond
    // to any registered flag in a FlagSet.
    type FlagNotDefinedError struct {
    	RawArg   string // the original argument, like --foo or -foo=value
    	Name     string
    	HasValue bool   // is this the -foo=value or --foo=value form?
    	Value    string // only provided if HasValue is true
    }
    
    func (e FlagNotDefinedError) Error() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 06 02:38:04 UTC 2022
    - 3.6K bytes
    - Viewed (0)
Back to top