Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for Vong (0.21 sec)

  1. src/archive/tar/writer.go

    				return err
    			}
    			tw.curr = &sparseFileWriter{tw.curr, spd, 0}
    		}
    	*/
    	return nil
    }
    
    func (tw *Writer) writeGNUHeader(hdr *Header) error {
    	// Use long-link files if Name or Linkname exceeds the field size.
    	const longName = "././@LongLink"
    	if len(hdr.Name) > nameSize {
    		data := hdr.Name + "\x00"
    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)
  2. src/archive/zip/zip_test.go

    		name    string
    		extra   []byte
    		wanterr error
    	}{
    		{
    			name:    strings.Repeat("x", 1<<16),
    			extra:   []byte{},
    			wanterr: errLongName,
    		},
    		{
    			name:    "long_extra",
    			extra:   bytes.Repeat([]byte{0xff}, 1<<16),
    			wanterr: errLongExtra,
    		},
    	}
    
    	// write a zip file
    	buf := new(bytes.Buffer)
    	w := NewWriter(buf)
    
    	for _, test := range headerTests {
    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)
  3. src/bytes/bytes.go

    		}
    		c0 := sep[0]
    		c1 := sep[1]
    		i := 0
    		t := len(s) - n + 1
    		fails := 0
    		for i < t {
    			if s[i] != c0 {
    				// IndexByte is faster than bytealg.Index, so use it as long as
    				// we're not getting lots of false positives.
    				o := IndexByte(s[i+1:t], c0)
    				if o < 0 {
    					return -1
    				}
    				i += o + 1
    			}
    			if s[i+1] == c1 && Equal(s[i:i+n], sep) {
    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. doc/go_spec.html

    <p>
    Function literals are <i>closures</i>: they may refer to variables
    defined in a surrounding function. Those variables are then shared between
    the surrounding function and the function literal, and they survive as long
    as they are accessible.
    </p>
    
    
    <h3 id="Primary_expressions">Primary expressions</h3>
    
    <p>
    Primary expressions are the operands for unary and binary expressions.
    </p>
    
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  5. api/go1.1.txt

    pkg syscall (windows-386), const MAX_ADAPTER_NAME_LENGTH = 256
    pkg syscall (windows-386), const MAX_COMPUTERNAME_LENGTH = 15
    pkg syscall (windows-386), const MAX_INTERFACE_NAME_LEN = 256
    pkg syscall (windows-386), const MAX_LONG_PATH = 32768
    pkg syscall (windows-386), const MAX_PATH = 260
    pkg syscall (windows-386), const MaxTokenInfoClass = 29
    pkg syscall (windows-386), const NameCanonical = 7
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/cgo_thread_lock.go

    // license that can be found in the LICENSE file.
    
    //go:build linux
    
    package cgotest
    
    /*
    #include <unistd.h>
    #include <stdbool.h>
    #include <sys/syscall.h>
    void Gosched(void);
    static bool Ctid(void) {
    	long tid1 = syscall(SYS_gettid);
    	Gosched();
    	return tid1 == syscall(SYS_gettid);
    }
    */
    import "C"
    
    import (
    	"runtime"
    	"testing"
    	"time"
    )
    
    //export Gosched
    func Gosched() {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu May 18 16:55:07 GMT 2023
    - 939 bytes
    - Viewed (0)
  7. .github/ISSUE_TEMPLATE/00-bug.yml

        attributes:
          label: "What did you see happen?"
          description: Command invocations and their associated output, functions with their arguments and return results, full stacktraces for panics (upload a file if it is very long), etc. Prefer copying text output over using screenshots.
        validations:
          required: true
    
      - type: textarea
        id: expected-behavior
        attributes:
          label: "What did you expect to see?"
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 23:31:17 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  8. src/archive/tar/format.go

    	nameSize   = 100 // Max length of the name field in USTAR format
    	prefixSize = 155 // Max length of the prefix field in USTAR format
    
    	// Max length of a special file (PAX header, GNU long name or link).
    	// This matches the limit used by libarchive.
    	maxSpecialFileSize = 1 << 20
    )
    
    // blockPadding computes the number of bytes needed to pad offset up to the
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  9. src/bufio/scan.go

    // as always, holds unprocessed text.
    type SplitFunc func(data []byte, atEOF bool) (advance int, token []byte, err error)
    
    // Errors returned by Scanner.
    var (
    	ErrTooLong         = errors.New("bufio.Scanner: token too long")
    	ErrNegativeAdvance = errors.New("bufio.Scanner: SplitFunc returns negative advance count")
    	ErrAdvanceTooFar   = errors.New("bufio.Scanner: SplitFunc returns advance count beyond input")
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  10. src/bytes/bytes_test.go

    	{"abc", []byte("ABC")},
    	{"AbC123", []byte("ABC123")},
    	{"azAZ09_", []byte("AZAZ09_")},
    	{"longStrinGwitHmixofsmaLLandcAps", []byte("LONGSTRINGWITHMIXOFSMALLANDCAPS")},
    	{"long\u0250string\u0250with\u0250nonascii\u2C6Fchars", []byte("LONG\u2C6FSTRING\u2C6FWITH\u2C6FNONASCII\u2C6FCHARS")},
    	{"\u0250\u0250\u0250\u0250\u0250", []byte("\u2C6F\u2C6F\u2C6F\u2C6F\u2C6F")}, // grows one byte per char
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top