Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 60 for appendTo (0.19 sec)

  1. misc/ios/detect.go

    		matches := 0
    		for _, udid := range udids {
    			for _, xmlLine := range xmlLines {
    				if bytes.Contains(xmlLine, udid) {
    					matches++
    				}
    			}
    		}
    		if matches == len(udids) {
    			files = append(files, string(line))
    		}
    	}
    	return files
    }
    
    func parseMobileProvision(fname string) *exec.Cmd {
    	return exec.Command("security", "cms", "-D", "-i", string(fname))
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 19 23:33:30 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  2. src/archive/zip/zip_test.go

    			if bytes.Count(p, []byte{lastByte}) == len(p) {
    				rp.n += int64(len(p))
    				return len(p), nil
    			}
    		}
    	}
    
    	for _, b := range p {
    		if rp == nil || rp.b != b {
    			r.buf = append(r.buf, repeatedByte{r.Size(), b, 1})
    			rp = &r.buf[len(r.buf)-1]
    		} else {
    			rp.n++
    		}
    	}
    	return len(p), nil
    }
    
    func memset(a []byte, b byte) {
    	if len(a) == 0 {
    		return
    	}
    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/cmd/asm/internal/asm/parse.go

    				}
    				break
    			}
    			if tok == '(' || tok == '[' {
    				nesting++
    			}
    			if tok == ')' || tok == ']' {
    				nesting--
    			}
    			items = append(items, lex.Make(tok, p.lex.Text()))
    		}
    		if len(items) > 0 {
    			operands = append(operands, items)
    			if colon >= 0 && len(operands) == colon+2 {
    				// AX:DX becomes DX, AX.
    				operands[colon], operands[colon+1] = operands[colon+1], operands[colon]
    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)
  4. api/go1.1.txt

    pkg os (darwin-amd64-cgo), const O_CREATE = 512
    pkg os (darwin-amd64-cgo), const O_EXCL = 2048
    pkg os (darwin-amd64-cgo), const O_SYNC = 128
    pkg os (darwin-amd64-cgo), const O_TRUNC = 1024
    pkg os (darwin-amd64-cgo), const PathListSeparator = 58
    pkg os (darwin-amd64-cgo), const PathSeparator = 47
    pkg os (freebsd-386), const DevNull = "/dev/null"
    pkg os (freebsd-386), const O_APPEND = 8
    pkg os (freebsd-386), const O_CREATE = 512
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (1)
  5. src/archive/zip/writer.go

    			b.uint32(uint32max) // uncompressed size
    
    			// append a zip64 extra block to Extra
    			var buf [28]byte // 2x uint16 + 3x uint64
    			eb := writeBuf(buf[:])
    			eb.uint16(zip64ExtraID)
    			eb.uint16(24) // size = 3x uint64
    			eb.uint64(h.UncompressedSize64)
    			eb.uint64(h.CompressedSize64)
    			eb.uint64(h.offset)
    			h.Extra = append(h.Extra, buf[:]...)
    		} else {
    			b.uint32(h.CompressedSize)
    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)
  6. misc/ios/go_ios_exec.go

    		if strings.HasPrefix(e, "TMPDIR=") || strings.HasPrefix(e, "HOME=") || strings.HasPrefix(e, "GOCACHE=") {
    			continue
    		}
    		env = append(env, e)
    	}
    	lldb := exec.Command(
    		"python",
    		"-", // Read script from stdin.
    		target,
    		appdir,
    		deviceapp,
    	)
    	lldb.Args = append(lldb.Args, args...)
    	lldb.Env = env
    	lldb.Stdin = strings.NewReader(lldbDriver)
    	lldb.Stdout = os.Stdout
    	var out bytes.Buffer
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  7. src/bytes/compare_test.go

    	}
    }
    
    func TestCompareBytes(t *testing.T) {
    	lengths := make([]int, 0) // lengths to test in ascending order
    	for i := 0; i <= 128; i++ {
    		lengths = append(lengths, i)
    	}
    	lengths = append(lengths, 256, 512, 1024, 1333, 4095, 4096, 4097)
    
    	if !testing.Short() {
    		lengths = append(lengths, 65535, 65536, 65537, 99999)
    	}
    
    	n := lengths[len(lengths)-1]
    	a := make([]byte, n+1)
    	b := make([]byte, n+1)
    	for _, len := range lengths {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 13 23:11:42 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  8. src/bufio/bufio.go

    func (b *Writer) Available() int { return len(b.buf) - b.n }
    
    // AvailableBuffer returns an empty buffer with b.Available() capacity.
    // This buffer is intended to be appended to and
    // passed to an immediately succeeding [Writer.Write] call.
    // The buffer is only valid until the next write operation on b.
    func (b *Writer) AvailableBuffer() []byte {
    	return b.buf[b.n:][:0]
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 12 14:39:08 GMT 2023
    - 21.8K bytes
    - Viewed (0)
  9. src/cmd/api/main_test.go

    // the given context.
    func listEnv(c *build.Context) []string {
    	if c == nil {
    		return os.Environ()
    	}
    
    	environ := append(os.Environ(),
    		"GOOS="+c.GOOS,
    		"GOARCH="+c.GOARCH)
    	if c.CgoEnabled {
    		environ = append(environ, "CGO_ENABLED=1")
    	} else {
    		environ = append(environ, "CGO_ENABLED=0")
    	}
    	return environ
    }
    
    type apiPackage struct {
    	*types.Package
    	Files []*ast.File
    }
    
    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)
  10. misc/go_android_exec/main.go

    				return 0, err
    			}
    
    			// Copy .go files from the package.
    			goFiles, err := filepath.Glob("*.go")
    			if err != nil {
    				return 0, err
    			}
    			if len(goFiles) > 0 {
    				args := append(append([]string{"push"}, goFiles...), deviceCwd)
    				if err := adb(args...); err != nil {
    					return 0, err
    				}
    			}
    		}
    	}
    
    	deviceBin := fmt.Sprintf("%s/%s", deviceGotmp, binName)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
Back to top