Search Options

Results per page
Sort
Preferred Languages
Advance

Results 341 - 350 of 551 for ensures (0.09 sec)

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

          TestByteSource okSource = new TestByteSource(bytes);
          assertThrows(IOException.class, () -> okSource.copyTo(new TestByteSink(option)));
          // ensure stream was closed IF it was opened (depends on implementation whether or not it's
          // opened at all if sink.newOutputStream() throws).
          assertTrue(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  2. cmd/object-api-utils.go

    	}
    	return fn, off, length, nil
    }
    
    // Close - calls the cleanup actions in reverse order
    func (g *GetObjectReader) Close() error {
    	if g == nil {
    		return nil
    	}
    	// sync.Once is used here to ensure that Close() is
    	// idempotent.
    	g.once.Do(func() {
    		for i := len(g.cleanUpFns) - 1; i >= 0; i-- {
    			g.cleanUpFns[i]()
    		}
    	})
    	return nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/escape/UnicodeEscaper.java

       * use this method. If an input string ends with an unmatched high surrogate character, then this
       * method will throw {@link IllegalArgumentException}. You should ensure your input is valid <a
       * href="http://en.wikipedia.org/wiki/UTF-16">UTF-16</a> before calling this method.
       *
       * <p><b>Note:</b> When implementing an escaper it is a good idea to override this method for
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 13.2K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/custom-response.md

        So, it is a generator function that transfers the "generating" work to something else internally.
    
        By doing it this way, we can put it in a `with` block, and that way, ensure that the file-like object is closed after finishing.
    
    /// tip
    
    Notice that here as we are using standard `open()` that doesn't support `async` and `await`, we declare the path operation with normal `def`.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 12K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt

        assertThat(hpackReader!!.getAndResetHeaderList()).isEqualTo(headerBlock)
      }
    
      /**
       * HPACK has a max header table size, which can be smaller than the max header message. Ensure the
       * larger header content is not lost.
       */
      @Test
      fun tooLargeToHPackIsStillEmitted() {
        bytesIn.writeByte(0x21) // Dynamic table size update (size = 1).
        bytesIn.writeByte(0x00) // Literal indexed
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  6. cmd/object-api-multipart_test.go

    		PartID          int
    		inputReaderData string
    		inputMd5        string
    		inputDataSize   int64
    		expectedMd5     string
    	}{
    		// Case 1-4.
    		// Creating sequence of parts for same uploadID.
    		// Used to ensure that the ListMultipartResult produces one output for the four parts uploaded below for the given upload ID.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 09:42:21 UTC 2024
    - 88.8K bytes
    - Viewed (0)
  7. internal/config/identity/openid/openid.go

    		}
    
    		if err = p.initializeProvider(getCfgVal, c.transport); err != nil {
    			return c, err
    		}
    
    		arnKey := p.roleArn
    		if p.RolePolicy == "" {
    			arnKey = DummyRoleARN
    			// Ensure that at most one JWT policy claim based provider may be
    			// defined.
    			if _, ok := c.arnProviderCfgsMap[DummyRoleARN]; ok {
    				return c, errSingleProvider
    			}
    		}
    
    		c.arnProviderCfgsMap[arnKey] = &p
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 10 20:16:44 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/MultipartBody.kt

        }
        return result
      }
    
      @Throws(IOException::class)
      override fun writeTo(sink: BufferedSink) {
        writeOrCountBytes(sink, false)
      }
    
      /**
       * Either writes this request to [sink] or measures its content length. We have one method do
       * double-duty to make sure the counting and content are consistent, particularly when it comes
       * to awkward operations like measuring the encoded length of header strings, or the
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingRequest.java

         */
        int getValidationLevel();
    
        /**
         * Sets the level of validation to perform on processed models. For building of projects,
         * {@link #VALIDATION_LEVEL_STRICT} should be used to ensure proper building. For the mere retrieval of dependencies
         * during artifact resolution, {@link #VALIDATION_LEVEL_MINIMAL} should be used to account for models of poor
         * quality. By default, models are validated in strict mode.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  10. internal/hash/checksum.go

    	b = append(b, tmp[:n]...)
    	b = append(b, crc...)
    	if c.Type.Is(ChecksumMultipart) {
    		var checksums int
    		if c.WantParts > 0 && !c.Type.Is(ChecksumIncludesMultipart) {
    			checksums = c.WantParts
    		}
    		// Ensure we don't divide by 0:
    		if c.Type.RawByteLen() == 0 || len(parts)%c.Type.RawByteLen() != 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 19 12:59:07 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top