Search Options

Results per page
Sort
Preferred Languages
Advance

Results 341 - 350 of 1,860 for size0 (0.03 sec)

  1. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

            int len = str.length();
            int ch, size = 0;
            byte[] dst;
    
            for( int i = 0; i < len; i++ ) {
                ch = str.charAt( i );
                size += ch > 0x07F ? (ch > 0x7FF ? 3 : 2) : 1;
            }
            dst = new byte[size];
            writeShort( size );
            try {
                Encdec.enc_utf8( str, dst, 0, size );
            } catch( IOException ioe ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 10.9K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.java

            assertEquals(4, res.getVertices().size(), "wrong # of vertices in the resulting graph after resolver");
            assertEquals(
                    2,
                    res.getExcidentEdges(v1).size(),
                    "wrong # of excident edges in the resulting graph entry after resolver");
    
            assertEquals(
                    1,
                    res.getIncidentEdges(v2).size(),
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. cmd/handler-utils.go

    			globalConnStats.incS3InputBytes(int64(tc.RequestRecorder.Size()))
    			globalConnStats.incS3OutputBytes(int64(tc.ResponseRecorder.Size()))
    
    			if countBktStat {
    				globalBucketConnStats.incS3InputBytes(bucket, int64(tc.RequestRecorder.Size()))
    				globalBucketConnStats.incS3OutputBytes(bucket, int64(tc.ResponseRecorder.Size()))
    				globalBucketHTTPStats.updateHTTPStats(bucket, api, tc.ResponseRecorder)
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  4. internal/ringbuffer/ring_buffer.go

    }
    
    // New returns a new RingBuffer whose buffer has the given size.
    func New(size int) *RingBuffer {
    	return &RingBuffer{
    		buf:  make([]byte, size),
    		size: size,
    	}
    }
    
    // NewBuffer returns a new RingBuffer whose buffer is provided.
    func NewBuffer(b []byte) *RingBuffer {
    	return &RingBuffer{
    		buf:  b,
    		size: len(b),
    	}
    }
    
    // SetBlocking sets the blocking mode of the ring buffer.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketWriter.kt

      private fun writeControlFrame(
        opcode: Int,
        payload: ByteString,
      ) {
        if (writerClosed) throw IOException("closed")
    
        val length = payload.size
        require(length <= PAYLOAD_BYTE_MAX) {
          "Payload size must be less than or equal to $PAYLOAD_BYTE_MAX"
        }
    
        val b0 = B0_FLAG_FIN or opcode
        sinkBuffer.writeByte(b0)
    
        var b1 = length
        if (isClient) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/ByteSourceTester.java

      public void testSlice_constrainedRange() throws IOException {
        long size = source.read().length;
        if (size >= 2) {
          ByteSource sliced = source.slice(1, size - 2);
          assertEquals(size - 2, sliced.read().length);
          ByteSource resliced = sliced.slice(0, size - 1);
          assertTrue(sliced.contentEquals(resliced));
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/ws/MessageDeflater.kt

      @Throws(IOException::class)
      fun deflate(buffer: Buffer) {
        require(deflatedBytes.size == 0L)
    
        if (noContextTakeover) {
          deflater.reset()
        }
    
        deflaterSink.write(buffer, buffer.size)
        deflaterSink.flush()
    
        if (deflatedBytes.endsWith(EMPTY_DEFLATE_BLOCK)) {
          val newSize = deflatedBytes.size - LAST_OCTETS_COUNT_TO_REMOVE_AFTER_DEFLATION
          deflatedBytes.readAndWriteUnsafe().use { cursor ->
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/dict/synonym/SynonymFileTest.java

            assertEquals(5, itemList1.size());
            assertEquals(5, itemList1.getAllRecordCount());
            assertEquals(1, itemList1.getCurrentPageNumber());
            assertEquals(20, itemList1.getPageSize());
    
            final PagingList<SynonymItem> itemList2 = synonymFile.selectList(4, 2);
            assertEquals(1, itemList2.size());
            assertEquals(5, itemList2.getAllRecordCount());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/HeadersJvmTest.kt

            "cache-control",
            "no-store",
            "user-agent",
            "OkHttp",
          )
        val headerMap = headers.toMultimap()
        assertThat(headerMap["cache-control"]!!.size).isEqualTo(2)
        assertThat(headerMap["user-agent"]!!.size).isEqualTo(1)
      }
    
      @Test fun toMultimapUsesCanonicalCase() {
        val headers =
          Headers.headersOf(
            "cache-control",
            "no-store",
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testRemove_present() {
        int initialSize = collection.size();
        assertTrue("remove(present) should return true", collection.remove(e0()));
        assertEquals(
            "remove(present) should decrease a collection's size by one.",
            initialSize - 1,
            collection.size());
        expectMissing(e0());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top