- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 113 for 0x1fff (0.03 sec)
-
src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeTest.java
void testNegativeFidValue() { int fid = -1; // Will be treated as 0xFFFF in unsigned 16-bit notifyChange = new NtTransNotifyChange(mockConfig, fid, FILE_NOTIFY_CHANGE_FILE_NAME, false); byte[] dst = new byte[10]; notifyChange.writeSetupWireFormat(dst, 0); // Should write as 0xFFFF (65535 in unsigned) assertEquals(0xFFFF, SMBUtil.readInt2(dst, 4)); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.4K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionServicePacketTest.java
assertEquals((byte) ((value >> 8) & 0xFF), dst[0]); assertEquals((byte) (value & 0xFF), dst[1]); } @Test @DisplayName("writeInt2 with offset should write at correct position") void testWriteInt2WithOffset() { byte[] dst = new byte[10]; dst[2] = (byte) 0xFF; // Mark position dst[3] = (byte) 0xFF; SessionServicePacket.writeInt2(0xABCD, dst, 4);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescTest.java
int fid = -1; // Will be treated as 0xFFFF in unsigned 16-bit querySecurityDesc = new NtTransQuerySecurityDesc(mockConfig, fid, OWNER_SECURITY_INFORMATION); byte[] dst = new byte[10]; querySecurityDesc.writeParametersWireFormat(dst, 0); // Should write as 0xFFFF (65535 in unsigned) assertEquals(0xFFFF, SMBUtil.readInt2(dst, 0)); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java
Arguments.of(0xFFFF, true) // All flags including DFS ); } @Test @DisplayName("Should handle maximum values for all fields") void testMaximumValues() throws SMBProtocolDecodingException { // Given byte[] buffer = new byte[256]; SMBUtil.writeInt2(16, buffer, 0); buffer[2] = (byte) 0xFF; // Max share type buffer[3] = 0;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java
} @Test @DisplayName("Should handle ciphers with maximum value") void testMaximumCipherValues() throws SMBProtocolDecodingException { int[] ciphers = { 0xFFFF, 0x0000, 0x7FFF }; EncryptionNegotiateContext originalContext = new EncryptionNegotiateContext(mockConfig, ciphers); int encoded = originalContext.encode(buffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java
assertEquals(0, reserved); } @DisplayName("Test writeParametersWireFormat with different FIDs") @ParameterizedTest @ValueSource(ints = { 0, 1, 0xFFFF, 0x8000, 0x7FFF }) void testWriteParametersWireFormatWithDifferentFids(int fid) { when(mockFileInfo.getFileInformationLevel()).thenReturn((byte) FileInformation.FILE_BASIC_INFO);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbRandomAccessFile.java
} // there seems to be a bug with some servers that causes corruption if using signatures + CAP_LARGE_WRITE if (th.hasCapability(SmbConstants.CAP_LARGE_WRITEX) && !th.areSignaturesActive()) { this.writeSize = Math.min(th.getConfig().getSendBufferSize() - 70, 0xFFFF - 70); } this.fp = 0L;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeTest.java
} private static Stream<Arguments> provideFidTestCases() { return Stream.of(Arguments.of(0x0000, (byte) 0x00, (byte) 0x00), Arguments.of(0x00FF, (byte) 0xFF, (byte) 0x00), Arguments.of(0xFF00, (byte) 0x00, (byte) 0xFF), Arguments.of(0xFFFF, (byte) 0xFF, (byte) 0xFF), Arguments.of(0x1234, (byte) 0x34, (byte) 0x12)); } @Test @DisplayName("readSetupWireFormat should return 0")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/XmlUtil.java
* - Tab (0x9) * - Line feed (0xA) * - Carriage return (0xD) * - Any character between 0x20 and 0xD7FF * - Any character between 0xE000 and 0xFFFD * - Any character between 0x10000 and 0x10FFFF * * @param in the input string to be processed * @return a new string with invalid XML characters removed, or the original
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 9.4K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/NtlmMessageTest.java
buffer.putShort(0, (short) 0xFFFF); assertEquals(0xFFFF, NtlmMessage.readUShort(data, 0), "Should read max UShort correctly."); // Test with a negative short (should be interpreted as unsigned positive) buffer.putShort(0, (short) -1); // -1 is 0xFFFF assertEquals(0xFFFF, NtlmMessage.readUShort(data, 0), "Should interpret -1 as unsigned max UShort."); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0)