Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for suffix (0.16 sec)

  1. src/cmd/cgo/internal/cgotest/overlaydir.go

    		if err != nil || srcPath == srcRoot {
    			return err
    		}
    
    		suffix := strings.TrimPrefix(srcPath, srcRoot)
    		for len(suffix) > 0 && suffix[0] == filepath.Separator {
    			suffix = suffix[1:]
    		}
    		dstPath := filepath.Join(dstRoot, suffix)
    
    		perm := info.Mode() & os.ModePerm
    		if info.Mode()&os.ModeSymlink != 0 {
    			info, err = os.Stat(srcPath)
    			if err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 20:56:09 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/line_test.go

    		// Test AVX512 suffixes.
    		{"VADDPD.A X0, X1, X2", `unknown suffix "A"`},
    		{"VADDPD.A.A X0, X1, X2", `unknown suffix "A"; duplicate suffix "A"`},
    		{"VADDPD.A.A.A X0, X1, X2", `unknown suffix "A"; duplicate suffix "A"`},
    		{"VADDPD.A.B X0, X1, X2", `unknown suffix "A"; unknown suffix "B"`},
    		{"VADDPD.Z.A X0, X1, X2", `Z suffix should be the last; unknown suffix "A"`},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  3. src/bytes/bytes.go

    // CutSuffix returns s without the provided ending suffix byte slice
    // and reports whether it found the suffix.
    // If s doesn't end with suffix, CutSuffix returns s, false.
    // If suffix is the empty byte slice, CutSuffix returns s, true.
    //
    // CutSuffix returns slices of the original slice s, not copies.
    func CutSuffix(s, suffix []byte) (before []byte, found bool) {
    	if !HasSuffix(s, suffix) {
    		return s, false
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  4. src/archive/tar/writer.go

    	default:
    		return err // Non-fatal error
    	}
    }
    
    func (tw *Writer) writeUSTARHeader(hdr *Header) error {
    	// Check if we can use USTAR prefix/suffix splitting.
    	var namePrefix string
    	if prefix, suffix, ok := splitUSTARPath(hdr.Name); ok {
    		namePrefix, hdr.Name = prefix, suffix
    	}
    
    	// Pack the main header.
    	var f formatter
    	blk := tw.templateV7Plus(hdr, f.formatString, f.formatOctal)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  5. src/archive/zip/zip_test.go

    		if !generatesZip64(t, gen(0xffff)) {
    			t.Error("expected zip64")
    		}
    	})
    }
    
    // suffixSaver is an io.Writer & io.ReaderAt that remembers the last 0
    // to 'keep' bytes of data written to it. Call Suffix to get the
    // suffix bytes.
    type suffixSaver struct {
    	keep  int
    	buf   []byte
    	start int
    	size  int64
    }
    
    func (ss *suffixSaver) Size() int64 { return ss.size }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  6. api/README

    to the next release of Go. The files in this directory only affect the
    warning output from the go api tool. Each file should be named
    nnnnn.txt, after the issue number for the accepted proposal.
    (The #nnnnn suffix must also appear at the end of each line in the file;
    that will be preserved when next/*.txt is concatenated into go1.XX.txt.)
    
    When you add a file to the api/next directory, you must add at least one file
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Jan 31 19:22:50 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/testdata/armerror.s

    	SWPW.S	R1, (R2), R3       // ERROR "invalid .S suffix"
    	MOVF.S	(R0), F1           // ERROR "invalid .S suffix"
    	MOVF.S	F9, (R4)           // ERROR "invalid .S suffix"
    	MOVF.S	0xfff0(R0), F1     // ERROR "invalid .S suffix"
    	MOVF.S	F9, 0xfff0(R4)     // ERROR "invalid .S suffix"
    	ADDF.S	F1, F2, F3         // ERROR "invalid .S suffix"
    	SUBD.U	F1, F2             // ERROR "invalid .U suffix"
    	NEGF.W	F9, F10            // ERROR "invalid .W suffix"
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Nov 03 14:06:21 GMT 2017
    - 14.4K bytes
    - Viewed (0)
  8. src/cmd/asm/doc.go

    // license that can be found in the LICENSE file.
    
    /*
    Asm, typically invoked as “go tool asm”, assembles the source file into an object
    file named for the basename of the argument source file with a .o suffix. The
    object file can then be combined with other objects into a package archive.
    
    # Command Line
    
    Usage:
    
    	go tool asm [flags] file
    
    The specified file must be a Go assembly file.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 22 20:46:45 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/testdata/amd64enc_extra.s

    	VGATHERQPD (DX)(Z16*1),K1,Z31 // 6262fd41933c02
    	VGATHERQPD (DX)(Z31*1),K1,Z16 // 62a2fd4193043a
    	VGATHERQPD (DX)(Z15*1),K1,Z23 // 62a2fd49933c3a
    	VGATHERQPD (DX)(Z23*1),K1,Z15 // 6272fd41933c3a
    	// EVEX: VCVTPD2DQ with Y suffix (VL=2).
    	VCVTPD2DQY (BX), X20  // 62e1ff28e623
    	VCVTPD2DQY (R11), X30 // 6241ff28e633
    	// XED encoder uses EVEX.X=0 for these; most x86 tools use EVEX.X=1.
    	// Either way is OK.
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 11 18:32:50 GMT 2023
    - 57.6K bytes
    - Viewed (0)
  10. src/archive/tar/writer_test.go

    		{sr("a/", nameSize), sr("a/", 77) + "a", sr("a/", 22), true},
    	}
    
    	for _, v := range vectors {
    		prefix, suffix, ok := splitUSTARPath(v.input)
    		if prefix != v.prefix || suffix != v.suffix || ok != v.ok {
    			t.Errorf("splitUSTARPath(%q):\ngot  (%q, %q, %v)\nwant (%q, %q, %v)",
    				v.input, prefix, suffix, ok, v.prefix, v.suffix, v.ok)
    		}
    	}
    }
    
    // TestIssue12594 tests that the Writer does not attempt to populate the prefix
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
Back to top