Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,817 for Written (0.34 sec)

  1. android/guava-tests/test/com/google/common/io/CountingOutputStreamTest.java

        counter.write(data);
        written += 10;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        counter.write(data, 0, 5);
        written += 5;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        counter.write(data, 2, 5);
        written += 5;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/SnapshotSerializerTest.groovy

            write(original)
    
            expect:
            original == written
        }
    
        def "serializes string properties"() {
            def original = string("x")
            write(original)
    
            expect:
            original == written
        }
    
        def "serializes number properties"() {
            write(value)
    
            expect:
            value == written
    
            where:
            value                                   | _
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 20:22:01 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. src/cmd/internal/pgo/serialize.go

    		written += int64(n)
    		if err != nil {
    			return written, err
    		}
    
    		n, err = fmt.Fprintf(bw, "%d %d\n", edge.CallSiteOffset, weight)
    		written += int64(n)
    		if err != nil {
    			return written, err
    		}
    	}
    
    	if err := bw.Flush(); err != nil {
    		return written, err
    	}
    
    	// No need to serialize TotalWeight, it can be trivially recomputed
    	// during parsing.
    
    	return written, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/util/proxy/streamtunnel_test.go

    	expectedStatusCode := 201
    	assert.False(t, trw.written, "Written field originally false in delegate response writer")
    	trw.WriteHeader(expectedStatusCode)
    	assert.Equal(t, expectedStatusCode, trw.w.(*mockResponseWriter).statusCode, "Expected written status code is correct")
    	assert.True(t, trw.written, "Written field set to true after writing delegate response writer")
    	// Response writer already written to does not write status.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 02:21:50 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  5. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/Decoder.java

         */
        void skipBytes(long count) throws EOFException, IOException;
    
        /**
         * Reads a byte stream written using {@link Encoder#encodeChunked(Encoder.EncodeAction)}.
         */
        <T> T decodeChunked(DecodeAction<Decoder, T> decodeAction) throws EOFException, Exception;
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. pkg/kubelet/util/ioutils/ioutils_test.go

    			w := LimitWriter(output, test.limit)
    
    			var (
    				err     error
    				written int64
    				n       int
    			)
    			for written < test.inputSize && err == nil {
    				n, err = w.Write(input[written : written+test.writeSize])
    				written += int64(n)
    			}
    
    			expectWritten := bounded(0, test.inputSize, test.limit)
    			assert.EqualValues(t, expectWritten, written)
    			if expectWritten <= 0 {
    				assert.Empty(t, output)
    			} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 11 13:52:28 UTC 2019
    - 2K bytes
    - Viewed (0)
  7. src/net/splice_linux.go

    		s = v.fd
    	case *UnixConn:
    		if v.fd.net != "unix" {
    			return 0, nil, false
    		}
    		s = v.fd
    	default:
    		return 0, nil, false
    	}
    
    	written, handled, err = pollSplice(&c.pfd, &s.pfd, remain)
    	if lr != nil {
    		lr.N -= written
    	}
    	return written, wrapSyscallError("splice", err), handled
    }
    
    // spliceTo transfers data from c to w using the splice system call to minimize
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. src/internal/poll/sendfile_windows.go

    package poll
    
    import (
    	"io"
    	"syscall"
    )
    
    // SendFile wraps the TransmitFile call.
    func SendFile(fd *FD, src syscall.Handle, n int64) (written int64, err error) {
    	defer func() {
    		TestHookDidSendFile(fd, 0, written, err, written > 0)
    	}()
    	if fd.kind == kindPipe {
    		// TransmitFile does not work with pipes
    		return 0, syscall.ESPIPE
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/test_fuzz_seed_corpus.txt

    ! stdout ^ok
    ! stdout 'Failing input written to testdata[/\\]fuzz[/\\]FuzzWithTestdata[/\\]'
    stdout 'failure while testing seed corpus entry: FuzzWithTestdata/1'
    stdout FAIL
    
    # Test that fuzzing a target with no seed corpus or cache finds a crash, prints
    # it, and write it to testdata
    ! go test -fuzz=FuzzWithNoCache -run=FuzzWithNoCache -fuzztime=1x
    ! stdout ^ok
    stdout 'Failing input written to testdata[/\\]fuzz[/\\]FuzzWithNoCache[/\\]'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 17 19:51:29 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  10. src/os/zero_copy_linux.go

    	if pfd == nil || !pfd.IsStream {
    		return
    	}
    
    	written, handled, err = pollSplice(&f.pfd, pfd, remain)
    
    	if lr != nil {
    		lr.N = remain - written
    	}
    
    	return written, handled, wrapSyscallError("splice", err)
    }
    
    func (f *File) copyFileRange(r io.Reader) (written int64, handled bool, err error) {
    	var (
    		remain int64
    		lr     *io.LimitedReader
    	)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top