- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 303 for consumed (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java
String reqPath = "\\\\server\\share\\path\\file"; // Ensure consumed is within bounds to avoid StringIndexOutOfBoundsException consumed = Math.min(consumed, reqPath.length()); referralData = DfsReferralDataImpl.fromReferral(mockReferral, reqPath, System.currentTimeMillis() + 10000, consumed); } } @Nested @DisplayName("Domain and Host Fixup Tests")Created: 2026-04-05 00:10 - Last Modified: 2025-08-14 05:31 - 30.6K bytes - Click Count (0) -
src/main/java/jcifs/internal/dfs/DfsReferralDataImpl.java
Created: 2026-04-05 00:10 - Last Modified: 2025-08-16 01:32 - 11.7K bytes - Click Count (0) -
src/main/java/jcifs/DfsReferralData.java
* * @return the share this referral points to */ String getShare(); /** * Get the number of characters from the UNC path that were consumed by this referral * * @return the number of characters from the unc path that were consumed by this referral */ int getPathConsumed(); /** * Get the replacement path for this referral *Created: 2026-04-05 00:10 - Last Modified: 2025-08-16 01:32 - 2.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java
int bytesRead = response.readDataWireFormat(buffer, 0, buffer.length); assertTrue(bytesRead > 0); // readDataWireFormat returns bytes consumed from header, not full buffer assertEquals(28, bytesRead); // Header + one referral structure assertNotNull(response.getDfsResponse()); } @TestCreated: 2026-04-05 00:10 - Last Modified: 2025-08-14 05:31 - 19.4K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeTest.java
TransWaitNamedPipe pipe = new TransWaitNamedPipe("\\\\pipe\\testPipe"); byte[] buffer = new byte[10]; // The implementation always returns 0 int consumed = pipe.readSetupWireFormat(buffer, 0, 4); assertEquals(0, consumed, "readSetupWireFormat should always return 0"); } @Test public void testWriteParametersWireFormat() { // Test that writeParametersWireFormat returns 0
Created: 2026-04-05 00:10 - Last Modified: 2025-08-14 05:31 - 5.3K bytes - Click Count (0) -
cmd/os_unix.go
return consumed, nil, typ, fmt.Errorf("buf size %d < record length %d", len(buf), dirent.Reclen) } consumed = int(dirent.Reclen) if direntInode(dirent) == 0 { // File absent in directory. return consumed, name, typ, err } switch dirent.Type { case syscall.DT_REG: typ = 0 case syscall.DT_DIR: typ = os.ModeDir case syscall.DT_LNK: typ = os.ModeSymlink default:
Created: 2026-04-05 19:28 - Last Modified: 2025-09-28 20:59 - 9.3K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt
import okhttp3.internal.http.parseChallenges import okio.Buffer import okio.Socket /** * An HTTP response. Instances of this class are not immutable: the response body is a one-shot * value that may be consumed only once and then closed. All other properties are immutable. * * This class implements [Closeable]. Closing it simply closes its response body. See * [ResponseBody] for an explanation and examples. */
Created: 2026-04-03 11:42 - Last Modified: 2025-07-28 14:39 - 18.1K bytes - Click Count (0) -
src/test/java/jcifs/DfsReferralDataTest.java
String result = mockReferralData.getShare(); // Then assertEquals(share, result); verify(mockReferralData).getShare(); } @Test @DisplayName("Should get path consumed") void testGetPathConsumed() { // Given int pathConsumed = 10; when(mockReferralData.getPathConsumed()).thenReturn(pathConsumed); // When
Created: 2026-04-05 00:10 - Last Modified: 2025-08-14 05:31 - 4.1K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/DateFormatting.kt
val position = ParsePosition(0) var result = STANDARD_DATE_FORMAT.get().parse(this, position) if (position.index == length) { // STANDARD_DATE_FORMAT must match exactly; all text must be consumed, e.g. no ignored // non-standard trailing "+01:00". Those cases are covered below. return result } synchronized(BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS) {
Created: 2026-04-03 11:42 - Last Modified: 2024-12-27 13:39 - 4.1K bytes - Click Count (0) -
src/main/java/jcifs/internal/dfs/DfsReferralDataInternal.java
* * @param domain the domain name to append */ void fixupDomain(String domain); /** * Reduces path consumed by the given value * * @param i the number of characters to strip from path consumed */ void stripPathConsumed(int i); @Override DfsReferralDataInternal next(); /** * Set the UNC path link for this referral *Created: 2026-04-05 00:10 - Last Modified: 2025-08-16 01:32 - 3.2K bytes - Click Count (0)