- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for getLong (0.09 sec)
-
src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 9.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/Dfs.java
} } static LogStream log = LogStream.getInstance(); static final boolean strictView = Config.getBoolean("jcifs.smb1.smb.client.dfs.strictView", false); static final long TTL = Config.getLong("jcifs.smb1.smb.client.dfs.ttl", 300); static final boolean DISABLED = Config.getBoolean("jcifs.smb1.smb.client.dfs.disabled", false); /** * Sentinel cache entry indicating a negative cache result */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
ByteBuffer buffer2 = ByteBuffer.wrap(nonce2, 0, 8).order(java.nio.ByteOrder.LITTLE_ENDIAN); long counter1 = buffer1.getLong(); long counter2 = buffer2.getLong(); assertEquals(counter1 + 1, counter2, "CCM counter should increment between nonces"); } @Test @DisplayName("Should generate multiple unique nonces without collision")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0) -
docs/smb3-features/02-persistent-handles-design.md
if (bytes.length != 16) { throw new IllegalArgumentException("GUID must be 16 bytes"); } ByteBuffer bb = ByteBuffer.wrap(bytes); long mostSig = bb.getLong(); long leastSig = bb.getLong(); this.guid = new UUID(mostSig, leastSig); } public byte[] toBytes() { ByteBuffer bb = ByteBuffer.allocate(16); bb.putLong(guid.getMostSignificantBits());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 31.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
Field offField = Smb2ReadRequest.class.getDeclaredField("offset"); offField.setAccessible(true); long offVal = offField.getLong(req); assertEquals(2L, offVal, "Request offset should match skipped bytes"); } @Test @DisplayName("read(byte[]) delegates to read(byte[],off,len)")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/Config.java
* @param def the default value to return if the property is not found or cannot be parsed * @return the property value as a long, or the default value */ public static long getLong(final String key, long def) { final String s = prp.getProperty(key); if (s != null) { try { def = Long.parseLong(s); } catch (final NumberFormatException nfe) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/jcifs/SIDTest.java
@Test void testToDisplayStringUnresolved() throws SmbException { SID sid = new SID(adminSidString); assertEquals(adminSidString, sid.toDisplayString()); } /** * Test getting the domain SID. * * @throws SmbException if the SID string is invalid */ @Test void testGetDomainSid() throws SmbException { // Create a mock RPC SID to simulate a user SIDRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/ServerDataTest.java
assertEquals(0, serverData.encryptionKeyLength); assertNull(serverData.encryptionKey); assertNull(serverData.guid); } /** * Test setting and getting byte field (sflags) */ @ParameterizedTest @ValueSource(bytes = { 0x00, 0x01, 0x7F, (byte) 0x80, (byte) 0xFF }) @DisplayName("Test sflags field with various byte values")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/NtlmMessageTest.java
} @Test void testGetAndSetFlags() { // Test setting and getting flags int testFlags = 0x12345678; message.setFlags(testFlags); assertEquals(testFlags, message.getFlags(), "Flags should be set and retrieved correctly."); } @Test void testGetFlag() { // Test getting individual flags message.setFlags(0b1010); // Set flags: 8 (0x8) and 2 (0x2)Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcHandleTest.java
void testToString() { // Given: Mock binding with toString when(mockBinding.toString()).thenReturn("mockBindingString"); // When: Getting string representation String result = handle.toString(); // Then: Should return binding's string representation assertEquals("mockBindingString", result); } }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.3K bytes - Viewed (0)