- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 263 for srcEnd (0.77 sec)
-
src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java
if (LogStream.level > 1) { uee.printStackTrace(log); } } return str; } String readString(final byte[] src, int srcIndex, final int srcEnd, final int maxLen, final boolean useUnicode) { int len = 0; String str = null; try { if (useUnicode) { // Unicode requires word alignment
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
String result = testBlock.readString(buffer, 2); assertEquals("Test", result); } @Test @DisplayName("Test read string with max length and srcEnd") void testReadStringWithMaxLengthAndSrcEnd() { testBlock.setUseUnicode(false); when(mockConfig.getOemEncoding()).thenReturn("UTF-8");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/ServerMessageBlock.java
* @param src source buffer * @param srcIndex starting index in the buffer * @param srcEnd ending index boundary * @param maxLen maximum length to read * @param unicode whether to use Unicode encoding * @return read string */ public String readString(final byte[] src, int srcIndex, final int srcEnd, final int maxLen, final boolean unicode) { if (unicode) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 38.9K bytes - Viewed (0) -
cmd/dynamic-timeouts_test.go
} func TestDynamicTimeoutDualDecrease(t *testing.T) { timeout := newDynamicTimeout(time.Minute, time.Second) initial := timeout.Timeout() for range dynamicTimeoutLogSize { timeout.LogSuccess(20 * time.Second) } adjusted := timeout.Timeout() for range dynamicTimeoutLogSize { timeout.LogSuccess(20 * time.Second) } adjustedAgain := timeout.Timeout()
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java
assertEquals("file1.txt", first.getName()); assertTrue(iterator.hasNext(), "Should have second element"); SmbResource second = iterator.next(); assertNotNull(second, "Second element should not be null"); assertEquals("file2.txt", second.getName()); assertTrue(iterator.hasNext(), "Should have third element"); SmbResource third = iterator.next();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java
assertEquals(second, third.next()); assertEquals(referralData, second.next()); } @Test @DisplayName("Should handle next() correctly") void testNext() { DfsReferralDataImpl second = new DfsReferralDataImpl(); referralData.append(second); DfsReferralDataImpl next = referralData.next(); assertSame(second, next); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/JAASAuthenticatorTest.java
Subject first = auth.getSubject(); // Second call should return cached value (same as first) Subject second = auth.getSubject(); if (first == null && second == null) { // Both null - caching is working assertNull(second, "Second getSubject should return same result as first (both null)"); } else if (first != null && second != null) { // Both non-null - should be same instance
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/util/StringUtilTest.java
void testJoinWithStringBuilder() { StringBuilder sb1 = new StringBuilder("first"); StringBuilder sb2 = new StringBuilder("second"); String result = StringUtil.join(",", sb1, sb2); assertEquals("first,second", result); } @Test @DisplayName("Should handle StringBuffer as CharSequence") void testJoinWithStringBuffer() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 9K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java
assertTrue(r1.getName().endsWith("/"), "Name should end with '/'"); assertTrue(itr.hasNext(), "Should have second element ready"); SmbResource r2 = itr.next(); assertNotNull(r2, "Second adapted resource must not be null"); assertTrue(r2.getName().endsWith("/"), "Name should end with '/'");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/TestSmbComTransactionResponseReader.java
assertEquals((byte) 0xA1, encoded[0], "First byte of first character"); assertEquals((byte) 0x00, encoded[1], "Second byte of first character"); assertEquals((byte) 0xA2, encoded[2], "First byte of second character"); assertEquals((byte) 0x00, encoded[3], "Second byte of second character"); } @Test public void testAsciiEncoding() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0)