Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 142 for escapers (0.14 sec)

  1. src/internal/abi/escape.go

    //go:nosplit
    //go:nocheckptr
    func NoEscape(p unsafe.Pointer) unsafe.Pointer {
    	x := uintptr(p)
    	return unsafe.Pointer(x ^ 0)
    }
    
    var alwaysFalse bool
    var escapeSink any
    
    // Escape forces any pointers in x to escape to the heap.
    func Escape[T any](x T) T {
    	if alwaysFalse {
    		escapeSink = x
    	}
    	return x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 884 bytes
    - Viewed (0)
  2. src/net/url/url.go

    			// everything, so escape nothing.
    			return false
    		}
    	}
    
    	if mode == encodeFragment {
    		// RFC 3986 §2.2 allows not escaping sub-delims. A subset of sub-delims are
    		// included in reserved from RFC 2396 §2.2. The remaining sub-delims do not
    		// need to be escaped. To minimize potential breakage, we apply two restrictions:
    		// (1) we always escape sub-delims outside of the fragment, and (2) we always
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 36.1K bytes
    - Viewed (0)
  3. src/go/printer/gobuild.go

    		// Note that these are already tabwriter-escaped.
    		for _, pos := range p.goBuild {
    			block = append(block, p.lineAt(pos)...)
    		}
    		for _, pos := range p.plusBuild {
    			block = append(block, p.lineAt(pos)...)
    		}
    	} else {
    		block = append(block, tabwriter.Escape)
    		block = append(block, "//go:build "...)
    		block = append(block, x.String()...)
    		block = append(block, tabwriter.Escape, '\n')
    		if len(p.plusBuild) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. src/mime/mediatype.go

    		}
    		// When MSIE sends a full file path (in "intranet mode"), it does not
    		// escape backslashes: "C:\dev\go\foo.txt", not "C:\\dev\\go\\foo.txt".
    		//
    		// No known MIME generators emit unnecessary backslash escapes
    		// for simple token characters like numbers and letters.
    		//
    		// If we see an unnecessary backslash escape, assume it is from MSIE
    		// and intended as a literal backslash. This makes Go servers deal better
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/mod/module/module.go

    // UnescapePath returns the module path for the given escaped path.
    // It fails if the escaped path is invalid or describes an invalid path.
    func UnescapePath(escaped string) (path string, err error) {
    	path, ok := unescapeString(escaped)
    	if !ok {
    		return "", fmt.Errorf("invalid escaped module path %q", escaped)
    	}
    	if err := CheckPath(path); err != nil {
    		return "", fmt.Errorf("invalid escaped module path %q: %v", escaped, err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 20:17:07 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  6. src/internal/runtime/atomic/atomic_mips64x.go

    //go:noescape
    func Load(ptr *uint32) uint32
    
    //go:noescape
    func Load8(ptr *uint8) uint8
    
    //go:noescape
    func Load64(ptr *uint64) uint64
    
    // NO go:noescape annotation; *ptr escapes if result escapes (#31525)
    func Loadp(ptr unsafe.Pointer) unsafe.Pointer
    
    //go:noescape
    func LoadAcq(ptr *uint32) uint32
    
    //go:noescape
    func LoadAcq64(ptr *uint64) uint64
    
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 21:29:34 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. src/internal/reflectlite/value.go

    //
    //go:noescape
    func typedmemmove(t *abi.Type, dst, src unsafe.Pointer)
    
    // Dummy annotation marking that the value x escapes,
    // for use in cases where the reflect code is so clever that
    // the compiler cannot follow.
    func escapes(x any) {
    	if dummy.b {
    		dummy.x = x
    	}
    }
    
    var dummy struct {
    	b bool
    	x any
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  8. internal/logger/console.go

    	// of splitting error text and always pretty printing the
    	// red banner along with the error message. Since the error
    	// message itself contains some colored text, we needed
    	// to use some ANSI control escapes to cursor color state
    	// and freely move in the screen.
    	for _, line := range strings.Split(errMsg, "\n") {
    		if len(line) == 0 {
    			// No more text to print, just quit.
    			break
    		}
    
    		for {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. src/internal/runtime/atomic/atomic_mipsx.go

    //go:noescape
    func Xchguintptr(ptr *uintptr, new uintptr) uintptr
    
    //go:noescape
    func Load(ptr *uint32) uint32
    
    //go:noescape
    func Load8(ptr *uint8) uint8
    
    // NO go:noescape annotation; *ptr escapes if result escapes (#31525)
    func Loadp(ptr unsafe.Pointer) unsafe.Pointer
    
    //go:noescape
    func LoadAcq(ptr *uint32) uint32
    
    //go:noescape
    func LoadAcquintptr(ptr *uintptr) uintptr
    
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 20:08:37 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultTransport.java

            }
            URI source = baseURI.resolve(relativeSource);
            if (!source.toASCIIString().startsWith(baseURI.toASCIIString())) {
                throw new IllegalArgumentException("Supplied relative URI escapes baseUrl");
            }
            GetTask getTask = new GetTask(source);
            getTask.setDataPath(target);
            try {
                transporter.get(getTask);
                return true;
            } catch (Exception e) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 02 16:33:18 UTC 2024
    - 5.3K bytes
    - Viewed (0)
Back to top