Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for pbcopy (0.16 sec)

  1. src/bufio/bufio_test.go

    		if _, err := w.ReadFrom(rw); err != rw.expected {
    			t.Errorf("w.ReadFrom(errorReaderFromTests[%d]) = _, %v, want _,%v", i, err, rw.expected)
    		}
    	}
    }
    
    // TestWriterReadFromCounts tests that using io.Copy to copy into a
    // bufio.Writer does not prematurely flush the buffer. For example, when
    // buffering writes to a network socket, excessive network writes should be
    // avoided.
    func TestWriterReadFromCounts(t *testing.T) {
    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)
  2. src/archive/zip/reader_test.go

    		if size != ft.Size {
    			t.Errorf("%v: uncompressed size %#x, want %#x", ft.Name, size, ft.Size)
    		}
    		r.Close()
    		return
    	}
    
    	var b bytes.Buffer
    	_, err = io.Copy(&b, r)
    	if err != ft.ContentErr {
    		t.Errorf("copying contents: %v (want %v)", err, ft.ContentErr)
    	}
    	if err != nil {
    		return
    	}
    	r.Close()
    
    	if g := uint64(b.Len()); g != size {
    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/cmd/cgo/gcc.go

    //
    // to sbCheck, and returns true. If a is a simple variable or field reference,
    // it writes
    //
    //	_cgoIndexNN := &a
    //
    // and dereferences the uses of _cgoIndexNN. Taking the address avoids
    // making a copy of an array.
    //
    // This tells _cgoCheckPointer to check the complete contents of the
    // slice or array being indexed, but no other part of the memory allocation.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  4. src/bytes/bytes_test.go

    	for i := 0; i < size; i++ {
    		a[i] = byte(17 * i)
    		b_init[i] = byte(23*i + 100)
    	}
    
    	for len := 0; len <= size; len++ {
    		for x := 0; x <= size-len; x++ {
    			for y := 0; y <= size-len; y++ {
    				copy(b, b_init)
    				copy(b[y:y+len], a[x:x+len])
    				if !Equal(a[x:x+len], b[y:y+len]) || !Equal(b[y:y+len], a[x:x+len]) {
    					t.Errorf("Equal(%d, %d, %d) = false", len, x, y)
    				}
    			}
    		}
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/testdata/ppc64.s

    	POPCNTB R3, R4                  // 7c6400f4
    	POPCNTW R3, R4                  // 7c6402f4
    	POPCNTD R3, R4                  // 7c6403f4
    
    	PASTECC R3, R4                  // 7c23270d
    	COPY R3, R4                     // 7c23260c
    
    	// load-and-reserve
    	LBAR (R4)(R3*1),$1,R5           // 7ca32069
    	LBAR (R4)(R0),$1,R5             // 7ca02069
    	LBAR (R4),$0,R5                 // 7ca02068
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Apr 24 15:53:25 GMT 2024
    - 49K bytes
    - Viewed (0)
Back to top