Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for startIndex (0.51 sec)

  1. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

                // When
                int bytesWritten = chunk.encode(buffer, startIndex);
    
                // Then
                assertEquals(EXPECTED_SIZE, bytesWritten);
                assertEquals(0L, SMBUtil.readInt8(buffer, startIndex));
                assertEquals(0L, SMBUtil.readInt8(buffer, startIndex + 8));
                assertEquals(0, SMBUtil.readInt4(buffer, startIndex + 16));
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java

            byte[] buffer = new byte[100];
            int startIndex = 10;
            buffer[startIndex] = 1; // replaceIfExists = true
            SMBUtil.writeInt4(nameBytes.length, buffer, startIndex + 16);
            System.arraycopy(nameBytes, 0, buffer, startIndex + 20, nameBytes.length);
    
            FileRenameInformation2 info = new FileRenameInformation2();
            int bytesRead = info.decode(buffer, startIndex, buffer.length - startIndex);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilCommon.kt

     */
    internal fun String.indexOfLastNonAsciiWhitespace(
      startIndex: Int = 0,
      endIndex: Int = length,
    ): Int {
      for (i in endIndex - 1 downTo startIndex) {
        when (this[i]) {
          '\t', '\n', '\u000C', '\r', ' ' -> Unit
          else -> return i + 1
        }
      }
      return startIndex
    }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  4. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java

                    if (i == startIndex) {
                        list.add(IntItem.ZERO);
                    } else {
                        list.add(parseItem(isCombination, isDigit, version.substring(startIndex, i)));
                    }
                    isCombination = false;
                    startIndex = i + 1;
                } else if (c == '-') {
                    if (i == startIndex) {
                        list.add(IntItem.ZERO);
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 26.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

                // When
                int bytesWritten = copy.encode(buffer, startIndex);
    
                // Then
                assertEquals(HEADER_SIZE + (3 * CHUNK_SIZE), bytesWritten);
    
                // Verify chunk count
                assertEquals(3, SMBUtil.readInt4(buffer, startIndex + SOURCE_KEY_SIZE));
    
                // Verify first chunk
                int chunkStart = startIndex + HEADER_SIZE;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java

            byte[] buffer = new byte[100];
            int startIndex = 5;
            original.encode(buffer, startIndex);
    
            // Now decode into a new instance
            int bytesRead = fileBasicInfo.decode(buffer, startIndex, 36);
    
            // Verify bytes read
            assertEquals(36, bytesRead);
    
            // Verify decoded values match original
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescTest.java

            for (int i = 0; i < dst.length; i++) {
                dst[i] = (byte) (i & 0xFF);
            }
    
            int startIndex = 5;
            int bytesWritten = querySecurityDesc.writeParametersWireFormat(dst, startIndex);
    
            // Check that bytes before startIndex are unchanged
            for (int i = 0; i < startIndex; i++) {
                assertEquals((byte) (i & 0xFF), dst[i]);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeTest.java

            for (int i = 0; i < dst.length; i++) {
                dst[i] = (byte) (i & 0xFF);
            }
    
            int startIndex = 5;
            int bytesWritten = notifyChange.writeSetupWireFormat(dst, startIndex);
    
            // Check that bytes before startIndex are unchanged
            for (int i = 0; i < startIndex; i++) {
                assertEquals((byte) (i & 0xFF), dst[i]);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java

                byte[] buffer = new byte[100];
                int startIndex = 10;
    
                int bytesWritten = echoRequest.writeBytesWireFormat(buffer, startIndex);
    
                // Should write 4 bytes
                assertEquals(4, bytesWritten);
    
                // Should write structure size of 4
                assertEquals(4, SMBUtil.readInt2(buffer, startIndex));
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java

            int startIndex = 10;
    
            // Prepare buffer with offset
            byte[] fullBuffer = new byte[buffer.length + startIndex];
            System.arraycopy(buffer, 0, fullBuffer, startIndex, buffer.length);
    
            setErrorCode(response, 0);
    
            int bytesRead = response.readDataWireFormat(fullBuffer, startIndex, buffer.length);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
Back to top