Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 58 for length_is (0.05 seconds)

  1. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java

            int paramWritten = trans2QueryFSInfo.writeParametersWireFormat(paramBuffer, 0);
            int dataWritten = trans2QueryFSInfo.writeDataWireFormat(dataBuffer, 0);
    
            // Verify lengths
            assertEquals(2, setupWritten);
            assertEquals(2, paramWritten);
            assertEquals(0, dataWritten);
    
            // Verify setup content
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.9K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java

            int paramWritten = trans2SetFileInfo.writeParametersWireFormat(paramBuffer, 0);
            int dataWritten = trans2SetFileInfo.writeDataWireFormat(dataBuffer, 0);
    
            // Verify lengths
            assertEquals(2, setupWritten);
            assertEquals(6, paramWritten);
            assertEquals(56, dataWritten); // 50 + 6 padding
    
            // Verify setup content
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.8K bytes
    - Click Count (0)
  3. src/test/java/jcifs/util/StringsTest.java

                assertTrue(utf16Bytes.length > 0, "UTF-16LE bytes should not be empty");
                assertNotEquals(utf8Bytes.length, utf16Bytes.length, "Different encodings should produce different lengths");
            }
    
            @ParameterizedTest
            @DisplayName("getBytes should handle various string inputs")
            @NullAndEmptySource
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.6K bytes
    - Click Count (0)
  4. tensorflow/c/c_api.cc

                              const void* const* values, const size_t* lengths,
                              int num_values) {
      if (strcmp(attr_name, tensorflow::kColocationAttrName) == 0) {
        desc->colocation_constraints.clear();
        for (int i = 0; i < num_values; ++i) {
          desc->colocation_constraints.emplace(static_cast<const char*>(values[i]),
                                               lengths[i]);
        }
      } else {
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Oct 04 05:55:32 GMT 2025
    - 102.4K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            // When
            boolean isError = response.isErrorResponseStatus();
    
            // Then
            assertFalse(isError);
        }
    
        @DisplayName("Should handle various data lengths")
        @ParameterizedTest
        @CsvSource({ "0, 0", "1, 10", "100, 200", "512, 1024" })
        void testReadBytesWireFormatVariousDataLengths(int dataLength, int dataRemaining) throws Exception {
            // Given
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 22.1K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

            void testVariousPadding(int padding) {
                assertDoesNotThrow(() -> request.setPadding((byte) padding));
            }
    
            @ParameterizedTest
            @DisplayName("Should handle various read lengths")
            @ValueSource(ints = { 0, 1, 512, 1024, 4096, 65536, 1048576 })
            void testVariousReadLengths(int length) {
                assertDoesNotThrow(() -> request.setReadLength(length));
            }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 24.8K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/base/Equivalence.java

       * Equivalence}.
       *
       * <p>For example, given an {@link Equivalence} for {@link String strings} named {@code equiv}
       * that tests equivalence using their lengths:
       *
       * {@snippet :
       * equiv.wrap("a").equals(equiv.wrap("b")) // true
       * equiv.wrap("a").equals(equiv.wrap("hello")) // false
       * }
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 10 01:47:55 GMT 2025
    - 14.5K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertFalse(elementsEqual(b.iterator(), a.iterator()));
    
        // Different lengths.
        a = asList(4, 8, 15, 16, 23);
        b = asList(4, 8, 15, 16, 23, 42);
        assertFalse(elementsEqual(a.iterator(), b.iterator()));
        assertFalse(elementsEqual(b.iterator(), a.iterator()));
    
        // Different lengths, one is empty.
        a = emptySet();
        b = asList(4, 8, 15, 16, 23, 42);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 57.3K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

            assertTrue(lenCap.getAllValues().stream().allMatch(len -> len == 1));
        }
    
        @Test
        @DisplayName("write(short/char/int/long/float/double): correct byte lengths")
        void write_multiByteVariants_lengths() throws Exception {
            SmbRandomAccessFile raf = spy(newInstance("rw", false, true, false));
            doNothing().when(raf).write(any(byte[].class), anyInt(), anyInt());
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.1K bytes
    - Click Count (0)
  10. src/archive/zip/writer.go

    		// Set the compression method to Store to ensure data length is truly zero,
    		// which the writeHeader method always encodes for the size fields.
    		// This is necessary as most compression formats have non-zero lengths
    		// even when compressing an empty string.
    		fh.Method = Store
    		fh.Flags &^= 0x8 // we will not write a data descriptor
    
    		// Explicitly clear sizes as they have no meaning for directories.
    		fh.CompressedSize = 0
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Tue Jan 28 04:20:09 GMT 2025
    - 19.4K bytes
    - Click Count (0)
Back to Top