Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 61 for bytes (0.15 sec)

  1. misc/go_android_exec/main.go

    	exitRe := regexp.MustCompile(exitReStr.String())
    
    	return &exitCodeFilter{w: w, exitRe: exitRe}, exitStr
    }
    
    func (f *exitCodeFilter) Write(data []byte) (int, error) {
    	n := len(data)
    	f.buf.Write(data)
    	// Flush to w until a potential match of exitRe
    	b := f.buf.Bytes()
    	match := f.exitRe.FindIndex(b)
    	if match == nil {
    		// Flush all of the buffer.
    		_, err := f.w.Write(b)
    		f.buf.Reset()
    		if err != nil {
    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)
  2. doc/go_spec.html

    </p>
    
    <pre>
    s := make([]byte, 2, 4)
    
    a0 := [0]byte(s)
    a1 := [1]byte(s[1:])     // a1[0] == s[1]
    a2 := [2]byte(s)         // a2[0] == s[0]
    a4 := [4]byte(s)         // panics: len([4]byte) > len(s)
    
    s0 := (*[0]byte)(s)      // s0 != nil
    s1 := (*[1]byte)(s[1:])  // &amp;s1[0] == &amp;s[1]
    s2 := (*[2]byte)(s)      // &amp;s2[0] == &amp;s[0]
    s4 := (*[4]byte)(s)      // panics: len([4]byte) > len(s)
    
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 02 22:43:51 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  3. misc/ios/go_ios_exec.go

    		// real test failures.
    		started := bytes.HasPrefix(out, []byte("lldb: running program"))
    		if started || err == nil || attempt == 5 {
    			return err
    		}
    		// Sometimes, the app was not yet ready to launch or the device path was
    		// stale. Retry.
    		attempt++
    		time.Sleep(5 * time.Second)
    	}
    }
    
    func runLLDB(target, appdir, deviceapp string, args []string) ([]byte, error) {
    	var env []string
    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)
  4. src/bytes/compare_test.go

    	{[]byte("x"), []byte("ab"), 1},
    	{[]byte("ab"), []byte("x"), -1},
    	{[]byte("x"), []byte("a"), 1},
    	{[]byte("b"), []byte("x"), -1},
    	// test runtime·memeq's chunked implementation
    	{[]byte("abcdefgh"), []byte("abcdefgh"), 0},
    	{[]byte("abcdefghi"), []byte("abcdefghi"), 0},
    	{[]byte("abcdefghi"), []byte("abcdefghj"), -1},
    	{[]byte("abcdefghj"), []byte("abcdefghi"), 1},
    	// nil tests
    	{nil, nil, 0},
    	{[]byte(""), nil, 0},
    	{nil, []byte(""), 0},
    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)
  5. src/cmd/api/main_test.go

    		}
    		w.writeType(buf, typ)
    	}
    	buf.WriteByte(')')
    }
    
    func (w *Walker) typeString(typ types.Type) string {
    	var buf bytes.Buffer
    	w.writeType(&buf, typ)
    	return buf.String()
    }
    
    func (w *Walker) signatureString(sig *types.Signature) string {
    	var buf bytes.Buffer
    	w.writeSignature(&buf, sig)
    	return buf.String()
    }
    
    func (w *Walker) emitObj(obj types.Object) {
    	switch obj := obj.(type) {
    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

    		for _, v := range vectors {
    			var buf bytes.Buffer
    			var r bytes.Reader
    
    			// Write the archive to a byte buffer.
    			tw := NewWriter(&buf)
    			for _, file := range v.files {
    				tw.WriteHeader(file.hdr)
    				tw.Write(file.body)
    			}
    			tw.Close()
    			b.Run(v.label, func(b *testing.B) {
    				b.ReportAllocs()
    				// Read from the byte buffer.
    				for i := 0; i < b.N; i++ {
    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/cgo/doc.go

    	// if C.free is needed).
    	func C.CString(string) *C.char
    
    	// Go []byte slice to C array
    	// The C array is allocated in the C heap using malloc.
    	// It is the caller's responsibility to arrange for it to be
    	// freed, such as by calling C.free (be sure to include stdlib.h
    	// if C.free is needed).
    	func C.CBytes([]byte) unsafe.Pointer
    
    	// C string to Go string
    	func C.GoString(*C.char) string
    
    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)
  8. misc/cgo/gmp/gmp.go

    func (z *Int) doinit() {
    	if z.init {
    		return
    	}
    	z.init = true
    	C.mpz_init(&z.i[0])
    }
    
    // Bytes returns z's representation as a big-endian byte array.
    func (z *Int) Bytes() []byte {
    	b := make([]byte, (z.Len()+7)/8)
    	n := C.size_t(len(b))
    	C.mpz_export(unsafe.Pointer(&b[0]), &n, 1, 1, 1, 0, &z.i[0])
    	return b[0:n]
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 9.5K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/testdata/mips.s

    // This input was created by taking the mips64 testcase and modified
    // by hand.
    
    #include "../../../../../runtime/textflag.h"
    
    TEXT foo(SB),DUPOK|NOSPLIT,$0
    
    	//inst:
    	//
    	// load ints and bytes
    	//
    	//	LMOVW rreg ',' rreg
    	//	{
    	//		outcode(int($1), &$2, 0, &$4);
    	//	}
    	MOVW	R1, R2
    	MOVW	LO, R1
    	MOVW	HI, R1
    	MOVW	R1, LO
    	MOVW	R1, HI
    	MOVW	R1, R2
    	MOVW	LO, R1
    	MOVW	HI, R1
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 08 12:17:12 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  10. api/go1.21.txt

    pkg bytes, func ContainsFunc([]uint8, func(int32) bool) bool #54386
    pkg bytes, method (*Buffer) AvailableBuffer() []uint8 #53685
    pkg bytes, method (*Buffer) Available() int #53685
    pkg cmp, func Compare[$0 Ordered]($0, $0) int #59488
    pkg cmp, func Less[$0 Ordered]($0, $0) bool #59488
    pkg cmp, type Ordered interface {} #59488
    pkg context, func AfterFunc(Context, func()) func() bool #57928
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Aug 07 09:39:17 GMT 2023
    - 25.6K bytes
    - Viewed (0)
Back to top