Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 613 for rend (0.04 sec)

  1. src/net/http/request_test.go

    // delayedEOFReader never returns (n > 0, io.EOF), instead putting
    // off the io.EOF until a subsequent Read call.
    type delayedEOFReader struct {
    	r io.Reader
    }
    
    func (dr delayedEOFReader) Read(p []byte) (n int, err error) {
    	n, err = dr.r.Read(p)
    	if n > 0 && err == io.EOF {
    		err = nil
    	}
    	return
    }
    
    func TestIssue10884_MaxBytesEOF(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:42:34 UTC 2024
    - 44K bytes
    - Viewed (0)
  2. platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/worker/TestEventSerializer.java

            @Override
            public DefaultNestedTestSuiteDescriptor read(Decoder decoder) throws Exception {
                Object id = idSerializer.read(decoder);
                String name = decoder.readString();
                String displayName = decoder.readString();
                CompositeIdGenerator.CompositeId parentId = idSerializer.read(decoder);
                return new DefaultNestedTestSuiteDescriptor(id, name, displayName, parentId);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 20:33:30 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

        /** The next byte to read. This is always less than or equal to [upstreamPos]. */
        private var sourcePos = 0L
    
        /**
         * Selects where to find the bytes for a read and read them. This is one of three sources.
         *
         * ## Upstream
         *
         * In this case the current thread is assigned as the upstream reader. We read bytes from
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/ByteStreams.java

          int off = (int) expectedSize - remaining;
          int read = in.read(bytes, off, remaining);
          if (read == -1) {
            // end of stream before reading expectedSize bytes
            // just return the bytes read so far
            return Arrays.copyOf(bytes, off);
          }
          remaining -= read;
        }
    
        // bytes is now full
        int b = in.read();
        if (b == -1) {
          return bytes;
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jan 17 18:59:58 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  5. src/io/io.go

    // many calls to Read have failed to return any data or error,
    // usually the sign of a broken [Reader] implementation.
    var ErrNoProgress = errors.New("multiple Read calls return no data or error")
    
    // Reader is the interface that wraps the basic Read method.
    //
    // Read reads up to len(p) bytes into p. It returns the number of bytes
    // read (0 <= n <= len(p)) and any error encountered. Even if Read
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:34:10 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  6. docs/fr/docs/python-types.md

    ## Motivations
    
    Prenons un exemple simple :
    
    ```Python
    {!../../../docs_src/python_types/tutorial001.py!}
    ```
    
    Exécuter ce programe affiche :
    
    ```
    John Doe
    ```
    
    La fonction :
    
    * Prend un `first_name` et un `last_name`.
    * Convertit la première lettre de chaque paramètre en majuscules grâce à `title()`.
    * Concatène les résultats avec un espace entre les deux.
    
    ```Python hl_lines="2"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  7. src/net/net_test.go

    				// until we're blocked in the cs.Read
    				// call below. Sleep is lame.
    				time.Sleep(100 * time.Millisecond)
    
    				// Interrupt the upcoming Read, unblocking it:
    				cs.SetReadDeadline(time.Unix(123, 0)) // time in the past
    			}()
    			var buf [1]byte
    			n, err := cs.Read(buf[:1])
    			if n != 0 || err == nil {
    				errc <- fmt.Errorf("Read = %v, %v; want 0, non-nil", n, err)
    			}
    		}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 21:04:44 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. platforms/core-runtime/daemon-protocol/src/main/java/org/gradle/launcher/daemon/protocol/DaemonMessageSerializer.java

            @Override
            public BuildActionParameters read(Decoder decoder) throws Exception {
                File currentDir = FILE_SERIALIZER.read(decoder);
                Map<String, String> sysProperties = NO_NULL_STRING_MAP_SERIALIZER.read(decoder);
                Map<String, String> envVariables = NO_NULL_STRING_MAP_SERIALIZER.read(decoder);
                LogLevel logLevel = logLevelSerializer.read(decoder);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:54:56 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  9. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/sourceparser/IncludeDirectivesSerializer.java

        private IncludeDirectivesSerializer() {
        }
    
        @Override
        public IncludeDirectives read(Decoder decoder) throws Exception {
            return DefaultIncludeDirectives.of(ImmutableList.copyOf(includeListSerializer.read(decoder)), ImmutableList.copyOf(macroListSerializer.read(decoder)), ImmutableList.copyOf(macroFunctionListSerializer.read(decoder)));
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 17K bytes
    - Viewed (0)
  10. src/crypto/ecdsa/ecdsa_test.go

    	case elliptic.P224().Params():
    		_, _, err := randomPoint(p224(), rand)
    		return err
    	case elliptic.P256().Params():
    		_, _, err := randomPoint(p256(), rand)
    		return err
    	case elliptic.P384().Params():
    		_, _, err := randomPoint(p384(), rand)
    		return err
    	case elliptic.P521().Params():
    		_, _, err := randomPoint(p521(), rand)
    		return err
    	default:
    		panic("unknown curve")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:58 UTC 2024
    - 13.5K bytes
    - Viewed (0)
Back to top