Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 37 of 37 for Kata (0.17 sec)

  1. src/archive/tar/reader.go

    	var gnuLongName, gnuLongLink string
    
    	// Externally, Next iterates through the tar archive as if it is a series of
    	// files. Internally, the tar format often uses fake "files" to add meta
    	// data that describes the next file. These meta data "files" should not
    	// normally be visible to the outside. As such, this loop iterates through
    	// one or more "header files" until it finds a "normal file".
    	format := FormatUSTAR | FormatPAX | FormatGNU
    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)
  2. 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)
    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)
  3. src/archive/tar/writer_test.go

    		if err != nil {
    			t.Fatal(err)
    		}
    
    		data, err := io.ReadAll(tr)
    		if err != nil {
    			t.Fatal(err)
    		}
    
    		if hdr.Name != curfname {
    			t.Fatalf("got filename %v, want %v",
    				curfname, hdr.Name)
    		}
    
    		origdata := fsys[curfname].Data
    		if string(data) != string(origdata) {
    			t.Fatalf("got file content %v, want %v",
    				data, origdata)
    		}
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  4. src/bytes/compare_test.go

    	}
    
    	n := lengths[len(lengths)-1]
    	a := make([]byte, n+1)
    	b := make([]byte, n+1)
    	for _, len := range lengths {
    		// randomish but deterministic data. No 0 or 255.
    		for i := 0; i < len; i++ {
    			a[i] = byte(1 + 31*i%254)
    			b[i] = byte(1 + 31*i%254)
    		}
    		// data past the end is different
    		for i := len; i <= n; i++ {
    			a[i] = 8
    			b[i] = 9
    		}
    		cmp := Compare(a[:len], b[:len])
    		if cmp != 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/archive/tar/tar_test.go

    		t.Errorf("Header mismatch.\n got %+v\nwant %+v", rHdr, hdr)
    	}
    	rData, err := io.ReadAll(tr)
    	if err != nil {
    		t.Fatalf("Read: %v", err)
    	}
    	if !bytes.Equal(rData, data) {
    		t.Errorf("Data mismatch.\n got %q\nwant %q", rData, data)
    	}
    }
    
    type headerRoundTripTest struct {
    	h  *Header
    	fm fs.FileMode
    }
    
    func TestHeaderRoundTrip(t *testing.T) {
    	vectors := []headerRoundTripTest{{
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  6. misc/ios/go_ios_exec.go

    		return fmt.Errorf("ideviceimagemounter: %v", err)
    	}
    	var info struct {
    		Dict struct {
    			Data []byte `xml:",innerxml"`
    		} `xml:"dict"`
    	}
    	if err := xml.Unmarshal(out, &info); err != nil {
    		return fmt.Errorf("mountDevImage: failed to decode mount information: %v", err)
    	}
    	dict, err := parsePlistDict(info.Dict.Data)
    	if err != nil {
    		return fmt.Errorf("mountDevImage: failed to parse mount information: %v", err)
    	}
    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. misc/cgo/gmp/gmp.go

    	type _C___mpz_struct struct {
    		_mp_alloc _C_int;
    		_mp_size _C_int;
    		_mp_d *_C_mp_limb_t;
    	}
    	type _C_mpz_t [1]_C___mpz_struct
    
    and then replaces each occurrence of a type C.xxx with _C_xxx.
    
    If xxx is data, cgo arranges for C.xxx to refer to the C variable,
    with the type translated as described above.  To do this, cgo must
    introduce a Go variable that points at the C variable (the linker can
    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)
Back to top