Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for Account (0.3 sec)

  1. src/bytes/buffer_test.go

    		switch err := recover().(type) {
    		case nil:
    			t.Fatal("bytes.Buffer.ReadFrom didn't panic")
    		case error:
    			// this is the error string of errNegativeRead
    			wantError := "bytes.Buffer: reader returned negative count from Read"
    			if err.Error() != wantError {
    				t.Fatalf("recovered panic: got %v, want %v", err.Error(), wantError)
    			}
    		default:
    			t.Fatalf("unexpected panic value: %#v", err)
    		}
    	}()
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  2. src/archive/zip/reader_test.go

    	if zt.File == nil {
    		return
    	}
    
    	if z.Comment != zt.Comment {
    		t.Errorf("comment=%q, want %q", z.Comment, zt.Comment)
    	}
    	if len(z.File) != len(zt.File) {
    		t.Fatalf("file count=%d, want %d", len(z.File), len(zt.File))
    	}
    
    	// test read of each file
    	for i, ft := range zt.File {
    		readTestFile(t, zt, ft, z.File[i], raw)
    	}
    	if t.Failed() {
    		return
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  3. src/bufio/bufio_test.go

    	b := NewReader(new(negativeReader))
    	defer func() {
    		switch err := recover().(type) {
    		case nil:
    			t.Fatal("read did not panic")
    		case error:
    			if !strings.Contains(err.Error(), "reader returned negative count from Read") {
    				t.Fatalf("wrong panic: %v", err)
    			}
    		default:
    			t.Fatalf("unexpected panic value: %T(%v)", err, err)
    		}
    	}()
    	b.Read(make([]byte, 100))
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  4. doc/go1.17_spec.html

    The shift operators shift the left operand by the shift count specified by the
    right operand, which must be non-negative. If the shift count is negative at run time,
    a <a href="#Run_time_panics">run-time panic</a> occurs.
    The shift operators implement arithmetic shifts if the left operand is a signed
    integer and logical shifts if it is an unsigned integer.
    There is no upper limit on the shift count. Shifts behave
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  5. src/archive/tar/fuzz_test.go

    			}
    		}
    		if err := w.Close(); err != nil {
    			t.Fatalf("Unable to write archive: %s", err)
    		}
    
    		// TODO: We may want to check if the archive roundtrips. This would require
    		// taking into account addition of the two zero trailer blocks that Writer.Close
    		// appends.
    	})
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 13 18:06:33 GMT 2022
    - 2.2K bytes
    - Viewed (0)
  6. misc/ios/README

    ideviceinstaller tools from https://www.libimobiledevice.org/. Use the HEAD versions from
    source; the stable versions have bugs that prevents the Go exec wrapper to install and run
    apps.
    
    Second, the Go exec wrapper must be told the developer account signing identity, the team
    id and a provisioned bundle id to use. They're specified with the environment variables
    GOIOS_DEV_ID, GOIOS_TEAM_ID and GOIOS_APP_ID. The detect.go program in this directory will
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Dec 29 21:49:26 GMT 2020
    - 2.7K bytes
    - Viewed (0)
  7. src/archive/tar/writer.go

    				sp2 = formatSPD(sp2, spHdr.Sparse())
    				spb = append(spb, spHdr[:]...)
    			}
    
    			// Update size fields in the header block.
    			realSize := hdr.Size
    			hdr.Size = 0 // Encoded size; does not account for encoded sparse map
    			for _, s := range spd {
    				hdr.Size += s.Length
    			}
    			copy(blk.V7().Size(), zeroBlock[:]) // Reset field
    			f.formatNumeric(blk.V7().Size(), hdr.Size)
    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)
  8. src/bytes/bytes.go

    // Repeat returns a new byte slice consisting of count copies of b.
    //
    // It panics if count is negative or if the result of (len(b) * count)
    // overflows.
    func Repeat(b []byte, count int) []byte {
    	if count == 0 {
    		return []byte{}
    	}
    
    	// Since we cannot return an error on overflow,
    	// we should panic if the repeat will generate an overflow.
    	// See golang.org/issue/16237.
    	if count < 0 {
    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)
  9. src/bytes/buffer.go

    		// we instead let capacity get twice as large so we
    		// don't spend all our time copying.
    		copy(b.buf, b.buf[b.off:])
    	} else if c > maxInt-c-n {
    		panic(ErrTooLarge)
    	} else {
    		// Add b.off to account for b.buf[:b.off] being sliced off the front.
    		b.buf = growSlice(b.buf[b.off:], b.off+n)
    	}
    	// Restore b.off and len(b.buf).
    	b.off = 0
    	b.buf = b.buf[:m+n]
    	return m
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  10. src/archive/zip/reader.go

    	return 0, &fs.PathError{Op: "read", Path: d.e.name, Err: errors.New("is a directory")}
    }
    
    func (d *openDir) ReadDir(count int) ([]fs.DirEntry, error) {
    	n := len(d.files) - d.offset
    	if count > 0 && n > count {
    		n = count
    	}
    	if n == 0 {
    		if count <= 0 {
    			return nil, nil
    		}
    		return nil, io.EOF
    	}
    	list := make([]fs.DirEntry, n)
    	for i := range list {
    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)
Back to top