- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 68 for consumed (3.06 sec)
-
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()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/dfs/DfsReferralDataImpl.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.7K bytes - Viewed (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 *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.5K bytes - Viewed (0) -
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")
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/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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.3K bytes - Viewed (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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
android/guava/src/com/google/thirdparty/publicsuffix/TrieParser.java
idx += doParseTrieToBuilder(new ArrayDeque<>(), encoded, idx, builder); } return builder.buildOrThrow(); } /** * Parses a trie node and returns the number of characters consumed. * * @param stack The prefixes that precede the characters represented by this node. Each entry of * the stack is in reverse order. * @param encoded The serialized trie.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 4K bytes - Viewed (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 *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java
@Test @DisplayName("Test decode returns correct bytes consumed") void testDecodeBytesConsumed() throws SMBProtocolDecodingException { // Prepare minimal buffer byte[] buffer = new byte[24]; // Test with offset 0 int bytesDecoded = response.decode(buffer, 0, 24); assertEquals(24, bytesDecoded, "Should return 24 bytes consumed from offset 0"); // Test with different offset
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/dfs/DfsReferralResponseBuffer.java
// Default constructor } private int pathConsumed; private int numReferrals; private int tflags; private Referral[] referrals; /** * Get the number of characters consumed from the path * * @return the pathConsumed */ public final int getPathConsumed() { return this.pathConsumed; } /** * Get the number of referrals in the response
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.2K bytes - Viewed (0)