Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Account (0.22 sec)

  1. 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 23 11:13:09 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  2. 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 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  3. 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 23 11:13:09 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/parse.go

    		if p.arch.Family == sys.ARM64 {
    			if x >= 64 {
    				p.errorf("register shift count too large: %s", str)
    			}
    			count = int16((x & 63) << 10)
    		} else {
    			if x >= 32 {
    				p.errorf("register shift count too large: %s", str)
    			}
    			count = int16((x & 31) << 7)
    		}
    	default:
    		p.errorf("unexpected %s in register shift", tok.String())
    	}
    	if p.arch.Family == sys.ARM64 {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  5. src/archive/zip/zip_test.go

    	var rp *repeatedByte
    	if len(r.buf) > 0 {
    		rp = &r.buf[len(r.buf)-1]
    		// Fast path, if p is entirely the same byte repeated.
    		if lastByte := rp.b; len(p) > 0 && p[0] == lastByte {
    			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 {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  6. doc/go_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 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 279.3K bytes
    - Viewed (0)
  7. api/next/62254.txt

    pkg net, method (*TCPConn) SetKeepAliveConfig(KeepAliveConfig) error #62254
    pkg net, type Dialer struct, KeepAliveConfig KeepAliveConfig #62254
    pkg net, type KeepAliveConfig struct #62254
    pkg net, type KeepAliveConfig struct, Count int #62254
    pkg net, type KeepAliveConfig struct, Enable bool #62254
    pkg net, type KeepAliveConfig struct, Idle time.Duration #62254
    pkg net, type KeepAliveConfig struct, Interval time.Duration #62254
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Feb 20 06:04:31 GMT 2024
    - 758 bytes
    - Viewed (0)
  8. src/bytes/example_test.go

    	fmt.Println(bytes.ContainsFunc([]byte("World"), f))
    	// Output:
    	// false
    	// true
    }
    
    func ExampleCount() {
    	fmt.Println(bytes.Count([]byte("cheese"), []byte("e")))
    	fmt.Println(bytes.Count([]byte("five"), []byte(""))) // before & after each rune
    	// Output:
    	// 3
    	// 5
    }
    
    func ExampleCut() {
    	show := func(s, sep string) {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  9. src/archive/zip/writer.go

    // existing file, such as a binary executable.
    // It must be called before any data is written.
    func (w *Writer) SetOffset(n int64) {
    	if w.cw.count != 0 {
    		panic("zip: SetOffset called after data was written")
    	}
    	w.cw.count = n
    }
    
    // Flush flushes any buffered data to the underlying writer.
    // Calling Flush is not normally necessary; calling Close is sufficient.
    func (w *Writer) Flush() error {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  10. src/archive/tar/writer_test.go

    			}, nil},
    			testWrite{"", 0, nil},
    
    			testClose{nil},
    		},
    	}, {
    		// The truncated test file was produced using these commands:
    		//   dd if=/dev/zero bs=1048576 count=16384 > /tmp/16gig.txt
    		//   tar -b 1 -c -f- /tmp/16gig.txt | dd bs=512 count=8 > writer-big.tar
    		file: "testdata/writer-big.tar",
    		tests: []testFnc{
    			testHeader{Header{
    				Typeflag: TypeReg,
    				Name:     "tmp/16gig.txt",
    				Size:     16 << 30,
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
Back to top