Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 60 for one (0.14 sec)

  1. src/archive/zip/writer_test.go

    	dst := NewWriter(buf2)
    	for _, f := range src.File {
    		if err := dst.Copy(f); err != nil {
    			t.Fatal(err)
    		}
    	}
    	if err := dst.Close(); err != nil {
    		t.Fatal(err)
    	}
    
    	// read the new one back
    	r, err := NewReader(bytes.NewReader(buf2.Bytes()), int64(buf2.Len()))
    	if err != nil {
    		t.Fatal(err)
    	}
    	for i, wt := range writeTests {
    		testReadFile(t, r.File[i], &wt)
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/parse.go

    		return "", "", nil, false // Might as well stop now.
    	}
    	word, cond = p.lex.Text(), ""
    	operands = scratch[:0]
    	// Zero or more comma-separated operands, one per loop.
    	nesting := 0
    	colon := -1
    	for tok != '\n' && tok != ';' {
    		// Process one operand.
    		var items []lex.Token
    		if cap(operands) > len(operands) {
    			// Reuse scratch items slice.
    			items = operands[:cap(operands)][len(operands)][:0]
    		} else {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    					t.Errorf("Equal(%d, %d, %d) = false", len, x, y)
    				}
    			}
    		}
    	}
    }
    
    // make sure Equal returns false for minimally different strings. The data
    // is all zeros except for a single one in one location.
    func TestNotEqual(t *testing.T) {
    	var size = 128
    	if testing.Short() {
    		size = 32
    	}
    	a := make([]byte, size)
    	b := make([]byte, size)
    
    	for len := 0; len <= size; len++ {
    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)
  4. src/builtin/builtin.go

    // arguments of [cmp.Ordered] types. There must be at least one argument.
    // If T is a floating-point type and any of the arguments are NaNs,
    // max will return NaN.
    func max[T cmp.Ordered](x T, y ...T) T
    
    // The min built-in function returns the smallest value of a fixed number of
    // arguments of [cmp.Ordered] types. There must be at least one argument.
    // If T is a floating-point type and any of the arguments are NaNs,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  5. src/bytes/bytes.go

    // A nil argument is equivalent to an empty slice.
    func Compare(a, b []byte) int {
    	return bytealg.Compare(a, b)
    }
    
    // explode splits s into a slice of UTF-8 sequences, one per Unicode code point (still slices of bytes),
    // up to a maximum of n byte slices. Invalid UTF-8 sequences are chopped into individual bytes.
    func explode(s []byte, n int) [][]byte {
    	if n <= 0 || n > len(s) {
    		n = len(s)
    	}
    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)
  6. src/archive/zip/reader.go

    		return err
    	}
    	buf := bufio.NewReader(rs)
    
    	// The count of files inside a zip is truncated to fit in a uint16.
    	// Gloss over this by reading headers until we encounter
    	// a bad one, and then only report an ErrFormat or UnexpectedEOF if
    	// the file count modulo 65536 is incorrect.
    	for {
    		f := &File{zip: r, zipr: rdr}
    		err = readDirectoryHeader(f, buf)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/lex/input.go

    // argsFor returns a map from formal name to actual value for this argumented macro invocation.
    // The opening parenthesis has been absorbed.
    func (in *Input) argsFor(macro *Macro) map[string][]Token {
    	var args [][]Token
    	// One macro argument per iteration. Collect them all and check counts afterwards.
    	for argNum := 0; ; argNum++ {
    		tokens, tok := in.collectArgument(macro)
    		args = append(args, tokens)
    		if tok == ')' {
    			break
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  8. api/go1.txt

    pkg syscall (linux-386), const IFF_NOARP ideal-int
    pkg syscall (linux-386), const IFF_NOTRAILERS ideal-int
    pkg syscall (linux-386), const IFF_NO_PI ideal-int
    pkg syscall (linux-386), const IFF_ONE_QUEUE ideal-int
    pkg syscall (linux-386), const IFF_POINTOPOINT ideal-int
    pkg syscall (linux-386), const IFF_PORTSEL ideal-int
    pkg syscall (linux-386), const IFF_PROMISC ideal-int
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (2)
  9. src/cmd/asm/internal/asm/testdata/amd64dynlinkerror.s

    	RET
    TEXT ·a10(SB), 0, $0-0
    	CMPL runtime·writeBarrier(SB), $0
    	JEQ one
    	ORQ R15, R15 // ERROR "when dynamic linking, R15 is clobbered by a global variable access and is used here"
    one:
    	RET
    TEXT ·a11(SB), 0, $0-0
    	CMPL runtime·writeBarrier(SB), $0
    	JEQ one
    	JMP two
    one:
    	ORQ R15, R15 // ERROR "when dynamic linking, R15 is clobbered by a global variable access and is used here"
    two:
    	RET
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 15 20:45:41 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/arch/arm64.go

    // constant) is one of the TBL-like instructions and one of its
    // inputs does not fit into prog.Reg, so require special handling.
    func IsARM64TBL(op obj.As) bool {
    	switch op {
    	case arm64.AVTBL, arm64.AVTBX, arm64.AVMOVQ:
    		return true
    	}
    	return false
    }
    
    // IsARM64CASP reports whether the op (as defined by an arm64.A*
    // constant) is one of the CASP-like instructions, and its 2nd
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Sep 29 09:04:58 GMT 2022
    - 10.4K bytes
    - Viewed (0)
Back to top