Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 33 for Next (0.13 sec)

  1. doc/godebug.md

    There is no plan to remove any of these settings.
    
    ### Go 1.20
    
    Go 1.20 introduced support for rejecting insecure paths in tar and zip archives,
    controlled by the [`tarinsecurepath` setting](/pkg/archive/tar/#Reader.Next)
    and the [`zipinsecurepath` setting](/pkg/archive/zip/#NewReader).
    These default to `tarinsecurepath=1` and `zipinsecurepath=1`,
    preserving the behavior of earlier versions of Go.
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Apr 16 17:29:58 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  2. src/archive/zip/reader_test.go

    	Size       uint64
    }
    
    var tests = []ZipTest{
    	{
    		Name:    "test.zip",
    		Comment: "This is a zipfile comment.",
    		File: []ZipTestFile{
    			{
    				Name:     "test.txt",
    				Content:  []byte("This is a test text file.\n"),
    				Modified: time.Date(2010, 9, 5, 12, 12, 1, 0, timeZone(+10*time.Hour)),
    				Mode:     0644,
    			},
    			{
    				Name:     "gophercolor16x16.png",
    				File:     "gophercolor16x16.png",
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  3. src/archive/tar/writer_test.go

    			t.Errorf("test %d, found prefix in GNU format: %s", i, prefix)
    		}
    
    		tr := NewReader(&b)
    		hdr, err := tr.Next()
    		if err != nil && err != ErrInsecurePath {
    			t.Errorf("test %d, unexpected Next error: %v", i, err)
    		}
    		if hdr.Name != name {
    			t.Errorf("test %d, hdr.Name = %s, want %s", i, hdr.Name, name)
    		}
    	}
    }
    
    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)
  4. src/cmd/asm/internal/asm/asm.go

    	nameAddr := p.address(operands[0])
    	if !p.validSymbol("TEXT", &nameAddr, false) {
    		return
    	}
    	name := symbolName(&nameAddr)
    	next := 1
    
    	// Next operand is the optional text flag, a literal integer.
    	var flag = int64(0)
    	if len(operands) == 3 {
    		flag = p.evalInteger("TEXT", operands[1])
    		next++
    	}
    
    	// Issue an error if we see a function defined as ABIInternal
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 25.3K bytes
    - Viewed (0)
  5. src/cmd/api/main_test.go

    		t.Fatal(err)
    	}
    
    	var nextFiles []string
    	if v := runtime.Version(); strings.Contains(v, "devel") || strings.Contains(v, "beta") {
    		next, err := filepath.Glob(filepath.Join(testenv.GOROOT(t), "api/next/*.txt"))
    		if err != nil {
    			t.Fatal(err)
    		}
    		nextFiles = next
    	}
    
    	for _, c := range contexts {
    		c.Compiler = build.Default.Compiler
    	}
    
    	walkers := make([]*Walker, len(contexts))
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  6. src/archive/tar/tar_test.go

    		t.Fatalf("tw.Write: %v", err)
    	}
    	if err := tw.Close(); err != nil {
    		t.Fatalf("tw.Close: %v", err)
    	}
    
    	// Read it back.
    	tr := NewReader(&b)
    	rHdr, err := tr.Next()
    	if err != nil {
    		t.Fatalf("tr.Next: %v", err)
    	}
    	if !reflect.DeepEqual(rHdr, hdr) {
    		t.Errorf("Header mismatch.\n got %+v\nwant %+v", rHdr, hdr)
    	}
    	rData, err := io.ReadAll(tr)
    	if err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/testdata/arm64.s

    	VFMLS	V1.D2, V12.D2, V1.D2            // 81cde14e
    	VFMLS	V1.S2, V12.S2, V1.S2            // 81cda10e
    	VFMLS	V1.S4, V12.S4, V1.S4            // 81cda14e
    	VEXT	$4, V2.B8, V1.B8, V3.B8         // 2320022e
    	VEXT	$8, V2.B16, V1.B16, V3.B16      // 2340026e
    	VRBIT	V24.B16, V24.B16                // 185b606e
    	VRBIT	V24.B8, V24.B8                  // 185b602e
    	VUSHR	$56, V1.D2, V2.D2               // 2204486f
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 08 03:28:17 GMT 2023
    - 94.9K bytes
    - Viewed (0)
  8. src/archive/zip/writer.go

    // letter (e.g. C:) or leading slash, and only forward slashes are
    // allowed. To create a directory instead of a file, add a trailing
    // slash to the name.
    // The file's contents must be written to the [io.Writer] before the next
    // call to [Writer.Create], [Writer.CreateHeader], or [Writer.Close].
    func (w *Writer) Create(name string) (io.Writer, error) {
    	header := &FileHeader{
    		Name:   name,
    		Method: Deflate,
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  9. doc/asm.html

    <h3 id="directives">Directives</h3>
    
    <p>
    The assembler uses various directives to bind text and data to symbol names.
    For example, here is a simple complete function definition. The <code>TEXT</code>
    directive declares the symbol <code>runtime·profileloop</code> and the instructions
    that follow form the body of the function.
    The last instruction in a <code>TEXT</code> block must be some sort of jump, usually a <code>RET</code> (pseudo-)instruction.
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Nov 28 19:15:27 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  10. src/archive/zip/zip_test.go

    	}
    }
    
    func BenchmarkZip64TestSizes(b *testing.B) {
    	for _, size := range []int64{1 << 12, 1 << 20, 1 << 26} {
    		b.Run(fmt.Sprint(size), func(b *testing.B) {
    			b.RunParallel(func(pb *testing.PB) {
    				for pb.Next() {
    					testZip64(b, size)
    				}
    			})
    		})
    	}
    }
    
    func TestSuffixSaver(t *testing.T) {
    	const keep = 10
    	ss := &suffixSaver{keep: keep}
    	ss.Write([]byte("abc"))
    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)
Back to top