Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 111 - 120 of 1,922 for LENGTH (0.05 seconds)

  1. src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java

            testBlock.setDigest(mockDigest);
            byte[] buffer = new byte[1024];
    
            int length = testBlock.encode(buffer, 0);
    
            assertTrue(length > 0);
            verify(mockDigest).sign(eq(buffer), eq(0), eq(length), eq(testBlock), any());
        }
    
        @Test
        @DisplayName("Test decode basic message")
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/SecurityBlobTest.java

            SecurityBlob blob = new SecurityBlob(data);
    
            // Assert
            assertSame(data, blob.get(), "get() should expose the same array reference passed in");
            assertEquals(data.length, blob.length(), "length() should match underlying array length");
            assertEquals("deadbeef", blob.toString(), "toString() should reflect underlying content");
            assertEquals(data.hashCode(), blob.hashCode(), "hashCode should equal the array's hashCode");
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/hash/HashCode.java

        checkArgument(
            string.length() >= 2, "input string (%s) must have at least 2 characters", string);
        checkArgument(
            string.length() % 2 == 0,
            "input string (%s) must have an even number of characters",
            string);
    
        byte[] bytes = new byte[string.length() / 2];
        for (int i = 0; i < string.length(); i += 2) {
          int ch1 = decode(string.charAt(i)) << 4;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  4. guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/Platform.java

        return (T[]) Arrays.copyOfRange(array, 0, array.length);
      }
    
      // TODO: Consolidate different copies in one single place.
      static String format(String template, Object... args) {
        // start substituting the arguments into the '%s' placeholders
        StringBuilder builder = new StringBuilder(template.length() + 16 * args.length);
        int templateStart = 0;
        int i = 0;
        while (i < args.length) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.1K bytes
    - Click Count (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/ExtractDataTest.java

            String[] titleValues = data.getValues("title");
            assertNotNull(titleValues);
            assertEquals(1, titleValues.length);
            assertEquals("Test Title", titleValues[0]);
    
            String[] authorValues = data.getValues("author");
            assertNotNull(authorValues);
            assertEquals(1, authorValues.length);
            assertEquals("John Doe", authorValues[0]);
        }
    
        public void test_putValues() {
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Mon Nov 24 03:59:47 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java

            firstInstance.decode(originalBuffer, 0, originalBuffer.length);
    
            // Encode from first instance
            byte[] encodedBuffer = new byte[8];
            firstInstance.encode(encodedBuffer, 0);
    
            // Decode into second instance
            FileInternalInfo secondInstance = new FileInternalInfo();
            secondInstance.decode(encodedBuffer, 0, encodedBuffer.length);
    
            // Verify both instances have same values
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.1K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java

                System.arraycopy(commentBytes, 0, buffer, commentOffset, commentBytes.length);
                buffer[commentOffset + commentBytes.length] = 0;
                commentOffset += commentBytes.length + 1;
            }
    
            // Read the data
            int bytesRead = response.readDataWireFormat(buffer, 0, buffer.length);
    
            // Verify results
            assertTrue(bytesRead > 0);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 25.4K bytes
    - Click Count (0)
  8. src/test/java/jcifs/netbios/SessionServicePacketTest.java

        void testReadLengthMaximum() {
            byte[] src = { (byte) 0x00, (byte) 0x01, (byte) 0xFF, (byte) 0xFF };
            int length = SessionServicePacket.readLength(src, 0);
    
            assertEquals(0x01FFFF, length);
        }
    
        @Test
        @DisplayName("readLength should handle zero length")
        void testReadLengthZero() {
            byte[] src = { (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00 };
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.5K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/primitives/Longs.java

       */
      public static long[] concat(long[]... arrays) {
        long length = 0;
        for (long[] array : arrays) {
          length += array.length;
        }
        long[] result = new long[checkNoOverflow(length)];
        int pos = 0;
        for (long[] array : arrays) {
          System.arraycopy(array, 0, result, pos, array.length);
          pos += array.length;
        }
        return result;
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 22 18:14:49 GMT 2025
    - 29K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/opensearch/extension/analysis/NGramSynonymTokenizer.java

                final int code = bytesReader.readVInt();
                final int count = code >>> 1;
                for (int i = 0; i < count; i++) {
                    synonymMap.words.get(bytesReader.readVInt(), scratchBytes);
                    if (scratchChars.chars.length < scratchBytes.length) {
                        scratchChars.chars = new char[scratchBytes.length];
                    }
    Created: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Sat Mar 15 06:51:20 GMT 2025
    - 17K bytes
    - Click Count (0)
Back to Top