Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for pre (0.14 sec)

  1. src/archive/tar/common.go

    	dst := src[:0]
    	var pre sparseEntry
    	for _, cur := range src {
    		if cur.Length == 0 {
    			continue // Skip empty fragments
    		}
    		pre.Length = cur.Offset - pre.Offset
    		if pre.Length > 0 {
    			dst = append(dst, pre) // Only add non-empty fragments
    		}
    		pre.Offset = cur.endOffset()
    	}
    	pre.Length = size - pre.Offset // Possibly the only empty fragment
    	return append(dst, pre)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  2. doc/asm.html

    	0x0048 00072 (x.go:3)	JMP	0
    ...
    </pre>
    
    <p>
    The <code>FUNCDATA</code> and <code>PCDATA</code> directives contain information
    for use by the garbage collector; they are introduced by the compiler.
    </p>
    
    <p>
    To see what gets put in the binary after linking, use <code>go tool objdump</code>:
    </p>
    
    <pre>
    $ go build -o x.exe x.go
    $ go tool objdump -s main.main x.exe
    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)
  3. src/cmd/cgo/doc.go

    to add to each appropriate set of command-line flags.
    
    When the cgo directives are parsed, any occurrence of the string ${SRCDIR}
    will be replaced by the absolute path to the directory containing the source
    file. This allows pre-compiled static libraries to be included in the package
    directory and linked properly.
    For example if package foo is in the directory /go/src/foo:
    
    	// #cgo LDFLAGS: -L${SRCDIR}/libs -lfoo
    
    Will be expanded to:
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  4. doc/go_mem.html

    For example, a compiler must not invert the conditional in this program:
    </p>
    
    <pre>
    *p = 1
    if cond {
    	*p = 2
    }
    </pre>
    
    <p>
    That is, the compiler must not rewrite the program into this one:
    </p>
    
    <pre>
    *p = 2
    if !cond {
    	*p = 1
    }
    </pre>
    
    <p>
    If <code>cond</code> is false and another goroutine is reading <code>*p</code>,
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  5. src/archive/tar/reader.go

    			// If we are unable to parse them and the prefix field looks like
    			// an ASCII string, then we fallback on the pre-Go1.8 behavior
    			// of treating these fields as the USTAR prefix field.
    			//
    			// Note that this will not use the fallback logic for all possible
    			// files generated by a pre-Go1.8 toolchain. If the generated file
    			// happened to have a prefix field that parses as valid
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  6. src/archive/tar/reader_test.go

    		file: "testdata/issue11169.tar",
    		err:  ErrHeader,
    	}, {
    		file: "testdata/issue12435.tar",
    		err:  ErrHeader,
    	}, {
    		// Ensure that we can read back the original Header as written with
    		// a buggy pre-Go1.8 tar.Writer.
    		file: "testdata/invalid-go17.tar",
    		headers: []*Header{{
    			Name:     "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/foo",
    			Uid:      010000000,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
Back to top